mehranshakarami / AI_Spectrum

155 stars 104 forks source link

tweets.py issue #1

Open karimmahalian opened 2 years ago

karimmahalian commented 2 years ago

Hi,

I tried to run this code snscrape /tweets.py but I got this error

AttributeError: 'Tweet' object has no attribute 'user'

Many thanks in advance

mehranpes commented 2 years ago

Thanks for letting me know. The snscrape package is updated and they have removed the 'user' attribute. I updated the code and now it works again. You can get the username directly with tweet.username

karimmahalian commented 2 years ago

It works now. Thank you. Could u please tell me how to send a query using a hashtag instead of a user name?

Many thanks

Reedheyner commented 1 year ago

Hello! Please! I tried to run this code snscrape /tweets.py but I got this error. How may I solve it?

Reedheyner commented 1 year ago

It works now. Thank you. Could u please tell me how to send a query using a hashtag instead of a user name?

Many thanks

Hello, Please! can I get the code for snscrape that works with you? I mean the whole package code. Thanks