taspinar / twitterscraper

Scrape Twitter for Tweets
MIT License
2.4k stars 581 forks source link

--profiles fails using Command Line #218

Closed johannstark closed 4 years ago

johannstark commented 5 years ago

Trying to make a query like this one: twitterscraper gundam -l 10 -bd 2019-8-22 -ed 2019-8-23 -o gundamFile.json --profiles

Creates the JSON file but fails with the profiles:

Traceback (most recent call last): File "/anaconda3/bin/twitterscraper", line 10, in sys.exit(main()) File "/anaconda3/lib/python3.7/site-packages/twitterscraper/main.py", line 126, in main list_users = list(set([tweet.user for tweet in tweets])) File "/anaconda3/lib/python3.7/site-packages/twitterscraper/main.py", line 126, in list_users = list(set([tweet.user for tweet in tweets])) AttributeError: 'Tweet' object has no attribute 'user'

Lidl-to-go commented 5 years ago

I have the same problem, need help

marquisvictor commented 5 years ago

@johannstark @Lidl-to-go Check this Improvement fork i made to a twitter scraping package originally built by Jefferson Henrique. It worked and works for me.

https://github.com/marquisvictor/Modified-GetOldTweets3

johannstark commented 5 years ago

@taspinar @marquisvictor @Lidl-to-go the issue is a tiny word at line 126 of a single file insted of "twee.user" is "tweet.username"

Lidl-to-go commented 5 years ago

@johannstark Tank you so much! it works! @marquisvictor Tank you also !

twollnik commented 4 years ago

@taspinar Fixed in #229. This issue can be closed.