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

CRITICAL:root:twint.run:Twint:Feed:noDataExpecting value: line 1 column 1 (char 0) #1312

Open halogbi opened 2 years ago

halogbi commented 2 years ago

Issue CRITICAL:root:twint.run:Twint:Feed:noDataExpecting value: line 1 column 1 (char 0)

I already install and upgrade I have python 3.7

it's not work never ever why . how can I fix this iiisue ASAP .

CRITICAL:root:twint.get:User:'NoneType' object is not subscriptable CRITICAL:root:twint.run:Twint:Feed:noDataExpecting value: line 1 column 1 (char 0) sleeping for 15 secs

timothydillan commented 2 years ago

Hey there. I got this issue as well and managed to fix it. All you need to do is reinstall twint, and upgrade it: pip3 uninstall twint && pip3 install twint && pip3 install --user --upgrade git+https://github.com/twintproject/twint.git@origin/master#egg=twint

Screen Shot 2021-12-24 at 10 11 16

Hope this helps!

smthjhn commented 2 years ago

Hey there. I got this issue as well and managed to fix it. All you need to do is reinstall twint, and upgrade it: pip3 uninstall twint && pip3 install twint && pip3 install --user --upgrade git+https://github.com/twintproject/twint.git@origin/master#egg=twint Screen Shot 2021-12-24 at 10 11 16 Hope this helps!

What version of python are you using? I tried using python 3.6.15 but it still gave me the same error. I also tried python 3.10.1 but I got <frozen importlib._bootstrap>:241: RuntimeWarning: greenlet.greenlet size changed, may indicate binary incompatibility. Expected 152 from C header, got 160 from PyObject [-] TWINT requires Python version 3.6+.

UPDATE: python 3.9.9 worked for me

timothydillan commented 2 years ago

Hey there. I got this issue as well and managed to fix it. All you need to do is reinstall twint, and upgrade it: pip3 uninstall twint && pip3 install twint && pip3 install --user --upgrade git+https://github.com/twintproject/twint.git@origin/master#egg=twint Screen Shot 2021-12-24 at 10 11 16 Hope this helps!

What version of python are you using? I tried using python 3.6.15 but it still gave me the same error. I also tried python 3.10.1 but I got <frozen importlib._bootstrap>:241: RuntimeWarning: greenlet.greenlet size changed, may indicate binary incompatibility. Expected 152 from C header, got 160 from PyObject [-] TWINT requires Python version 3.6+.

UPDATE: python 3.9.9 worked for me

Yeah, you can't use 3.10 and above since there's a bug in the library that incorrectly detects your Python version. Check this PR out: https://github.com/twintproject/twint/pull/1309

timothydillan commented 2 years ago

Alternatively, if twint doesn't really work out for you, you can instead use snscrape https://medium.com/dataseries/how-to-scrape-millions-of-tweets-using-snscrape-195ee3594721. I find it less susceptible to "Guest token not found" errors and provides complete tweets.

weirdyang commented 2 years ago

pip3 uninstall twint && pip3 install twint && pip3 install --user --upgrade

this didn't fix it for me, I'm using Python 3.9.1

any other advice?

timothydillan commented 2 years ago

pip3 uninstall twint && pip3 install twint && pip3 install --user --upgrade

this didn't fix it for me, I'm using Python 3.9.1

any other advice?

Alternatively you can use snscrape. Here's a basic guide on using it: https://medium.com/dataseries/how-to-scrape-millions-of-tweets-using-snscrape-195ee3594721.

weirdyang commented 2 years ago

For those with this issue, this worked for me

https://github.com/twintproject/twint/issues/915#issuecomment-813015561

Remember to restart the kernel