Python Twitter Scraper Without Using API [closed]
Answer a question I am trying to make a Twitter Scraper using python using twint module but I think twitter block this module. When Running Twint Module I got this error. Can anyone give me any other
·
Answer a question
I am trying to make a Twitter Scraper using python using twint module but I think twitter block this module.
When Running Twint Module I got this error. Can anyone give me any other way to scrape twitter twits.
...
CRITICAL:root:twint.run:Twint:Feed:noDataExpecting value: line 1 column 1 (char 0)
sleeping for 1.0 secs
CRITICAL:root:twint.run:Twint:Feed:noDataExpecting value: line 1 column 1 (char 0)
sleeping for 1.0 secs
CRITICAL:root:twint.run:Twint:Feed:noDataExpecting value: line 1 column 1 (char 0)
sleeping for 1.0 secs
CRITICAL:root:twint.run:Twint:Feed:noDataExpecting value: line 1 column 1 (char 0)
sleeping for 1.0 secs
CRITICAL:root:twint.run:Twint:Feed:noDataExpecting value: line 1 column 1 (char 0)
sleeping for 1.0 secs
CRITICAL:root:twint.run:Twint:Feed:noDataExpecting value: line 1 column 1 (char 0)
sleeping for 1.0 secs
CRITICAL:root:twint.run:Twint:Feed:noDataExpecting value: line 1 column 1 (char 0)
sleeping for 1.0 secs
...
My Code
...
import twint
#Configure
c = twint.Config()
c.Search = "covid"
#Run
twint.run.Search(c)
...
Answers
Uninstall twint
pip3 uninstall twint
than install twint using
pip3 install --user --upgrade git+https://github.com/twintproject/twint.git@origin/master#egg=twint
this works for me.
更多推荐
已为社区贡献126473条内容
所有评论(0)