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.66k stars 2.72k forks source link

ValueError: Invalid format string #605

Closed Kryhowsky closed 4 years ago

Kryhowsky commented 4 years ago

Initial Check

Command Ran

twint -s #protein --since 2019-11-01 --until 2019-11-30 -o tweets.json --json

Description of Issue

When I run this command in cmd I got an error: ValueError: Invalid format string.

Same situation is when I'm trying to run python script with twint as a module. When c.Since and c.Until is specified there is error. When I scpecify only one argument (doesn't matter if it is a since or until) script runs.

Environment Details

I'm using Windows and running this in terminal.

pielco11 commented 4 years ago

That issue has been fixed yesterday, are you sure to be running the latest version?

Kryhowsky commented 4 years ago

I updated repository once again and durig this is warning WARNING: Did not find branch or tag 'origin/master', assuming revision or ref. Maby it's something with that? Because I did it again and still have ValueError. I copy pasted url.py as well. Same ValueError again.

pielco11 commented 4 years ago

Copying&pasting is a bad practice, and I do not suggest it. (you are modifying data, modifications should be commit-ed and so on...)

May you clone twint in a new directory and erase the previous one?

Kryhowsky commented 4 years ago

Sure, I did it. Created new directory and clone git once again. Still have this error. Maybe this will say more about this ValueError? CRITICAL:root:twint.run:Twint:Feed:noDataExpecting value: line 1 column 1 (char 0)

pielco11 commented 4 years ago

This error message is known and there's not a solution for it, yet. So you can just ignore it

Kryhowsky commented 4 years ago

Ok, but if I run same script on machine with other OS that should works?

pielco11 commented 4 years ago

Ignoring that error message, people told me that Twint works as expected with every platform. That command is expected to work on both Windows and *nix systems