JustAnotherArchivist / snscrape

A social networking service scraper in Python
GNU General Public License v3.0
4.33k stars 699 forks source link

Unrecognized arguments with single quotes on Windows cmd #128

Closed shizia closed 3 years ago

shizia commented 3 years ago

Hello, I have some problem. I used this command: snscrape twitter-search 'foobar since:2019-01-01 until:2019-01-02' but it return this error: snscrape: error: unrecognized arguments: since:2019-01-01 until:2019-01-02'. How to solve it?

JustAnotherArchivist commented 3 years ago

This is an issue with your environment. The command works correctly on any standard shell. The error message, especially the single quote at the end, indicates that the quoting isn't preserved in whatever you are using to run snscrape.

shizia commented 3 years ago

This is an issue with your environment. The command works correctly on any standard shell. The error message, especially the single quote at the end, indicates that the quoting isn't preserved in whatever you are using to run snscrape.

Well ,I am still a little bit confused. So I should change my environment? What should I change?

JustAnotherArchivist commented 3 years ago

I have no idea. What are you using?

shizia commented 3 years ago

I use cmd of windows 10.

JustAnotherArchivist commented 3 years ago

I was suspecting that. I still have no idea since I haven't had to use Windows in a long time, but maybe try double quotes (") instead of single quotes (').

shizia commented 3 years ago

It works!!Thank you very much!!!!