ERROR:root:An unknown error occurred! Returning tweets gathered so far.
Traceback (most recent call last):
File "....query.py", line 96, in query_tweets_once
pos is None
File "....query.py", line 39, in query_single_page
return tweets, "TWEET-{}-{}".format(tweets[-1].id, tweets[0].id)
IndexError: list index out of range
INFO: Got 0 tweets (0 new).
Added:
followers = tweet.find('li', 'ProfileNav-item ProfileNav-item--followers').find( 'span','ProfileNav-value')['data-count']
to the tweet.py -> def from_soup(cls, tweet)
but getting error:
ERROR:root:An unknown error occurred! Returning tweets gathered so far. Traceback (most recent call last): File "....query.py", line 96, in query_tweets_once pos is None File "....query.py", line 39, in query_single_page return tweets, "TWEET-{}-{}".format(tweets[-1].id, tweets[0].id) IndexError: list index out of range INFO: Got 0 tweets (0 new).
Any ideas?