5

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)

...

Uzair Afridi
  • 51
  • 1
  • 1
  • 4

1 Answers1

14

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.

Vatsal Parsaniya
  • 899
  • 6
  • 15
  • 1
    FWiW, I tried the above command but it didn't work until I wrapped the last argument in quotes like this: `pip3 install --user --upgrade "git+https://github.com/twintproject/twint.git@origin/master#egg=twint"` – jayp Dec 18 '21 at 01:14