Skip to content
This repository has been archived by the owner on Mar 30, 2023. It is now read-only.

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

Open
halogbi opened this issue Dec 15, 2021 · 7 comments

Comments

@halogbi
Copy link

halogbi commented Dec 15, 2021

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
Copy link

timothydillan commented Dec 24, 2021

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
Copy link

smthjhn commented Dec 27, 2021

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
Copy link

timothydillan commented Dec 28, 2021

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: #1309

@timothydillan
Copy link

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
Copy link

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
Copy link

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
Copy link

For those with this issue, this worked for me

#915 (comment)

Remember to restart the kernel

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

4 participants