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.

Logo

学AI,认准AI Studio!GPU算力,限时免费领,邀请好友解锁更多惊喜福利 >>>

更多推荐