twintproject / twint

An advanced Twitter scraping & OSINT tool written in Python that doesn't use Twitter's API, allowing you to scrape a user's followers, following, Tweets and more while evading most API limitations.
MIT License
15.65k stars 2.72k forks source link

twint --since error ValueError: unconverted data remains: #550

Closed fabionoth closed 4 years ago

fabionoth commented 4 years ago

twint --since "2019-10-18 09:05:42" error

Using terminal CLI executing this command twint -u <username> --since "2019-10-18 09:05:42" --limit 10 --stats --hashtags --csv -o file.csv

I got this msg error: Traceback (most recent call last): File ".local/bin/twint", line 11, in <module> sys.exit(run_as_command()) File ".local/lib/python3.6/site-packages/twint/cli.py", line 295, in run_as_command main() File ".local/lib/python3.6/site-packages/twint/cli.py", line 287, in main run.Search(c) File ".local/lib/python3.6/site-packages/twint/run.py", line 292, in Search run(config, callback) File ".local/lib/python3.6/site-packages/twint/run.py", line 213, in run get_event_loop().run_until_complete(Twint(config).main(callback)) File ".local/lib/python3.6/site-packages/twint/run.py", line 27, in __init__ self.d = datelock.Set(self.config.Until, self.config.Since) File ".local/lib/python3.6/site-packages/twint/datelock.py", line 20, in Set d._since = datetime.datetime.strptime(Since, "%Y-%m-%d").date() File "/usr/lib/python3.6/_strptime.py", line 565, in _strptime_datetime tt, fraction = _strptime(data_string, format) File "/usr/lib/python3.6/_strptime.py", line 365, in _strptime data_string[found.end():]) ValueError: unconverted data remains: 09:05:42

pielco11 commented 4 years ago

It seems that the pip package is still 2.1.2, while that functionality is available for twint 2.1.3

the latest build passed, don't know why package not published. I'm checking it right now

pielco11 commented 4 years ago

Twint 2.1.3 for py3.6 and 3.7 is available now, please update and retry!

Twint 2.1.3 for py3.8-dev and pynightly is being pushed now

pielco11 commented 4 years ago

Here's what I get immagine

fabionoth commented 4 years ago

Awesome. o/ Thanks :-)