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.7k stars 2.72k forks source link

twint.get:User:'NoneType' object has no attribute 'find' #883

Open Tasaqi opened 4 years ago

Tasaqi commented 4 years ago

[QUESTION] Last day ever thing is working smooth.. But today i got this exception while getting tweets and followers of profile

I am sure about these points and update twint:

Command Ran

For Tweets:

tweets = []
data={}
index=0
c = twint.Config()
c.Username=username
c.Store_object = True
c.Debug=True
c.Hide_output=True
c.Limit=20
c.Store_object_tweets_list = tweets

For followers c = twint.Config() c.Username = username c.User_full = True c.Limit=20 c.Store_object = True twint.run.Followers(c) users= twint.output.users_list:

Description of Issue

Last day ever thing is working smooth and fine.. But today i got this exception while getting tweets and followers of profile.

Exceptions:

[2020-08-24 17:02:30,123: CRITICAL/ForkPoolWorker-1] twint.get:User:'NoneType' object has no attribute 'find' [2020-08-24 17:02:30,123: WARNING/ForkPoolWorker-1] Cannot find twitter account with name = asd

Environment Details

Linux Ubuntu Run from a python program file

Tasaqi commented 4 years ago

Hello,,

The tweets part of twint is work fine today but followers part still got exceptions

twint.get:User:'NoneType' object is not subscriptable

I read related issues on twint repository. but didn't find appropriate solution for this problem.

""You could wait a while until Twitter does not "unsuspend" your IP, and then resume the scraping. """

How many hours we should wait until twitter does unsuspend IP?

IS VPN is appropriate solution for this problem ?