ritvikmath / ScrapingData

Code for getting data from social media for your data science projects!
159 stars 213 forks source link

Input error. #10

Open rahulbordoloi opened 4 years ago

rahulbordoloi commented 4 years ago

I changed raw_input to input, but then got up with this. Can you help out? Hashtag Phrase corona


---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
<ipython-input-6-9964f143e2c9> in <module>()
     11 
     12 if __name__ == '__main__':
---> 13     search_for_hashtags(consumer_key, consumer_secret, access_key, access_secret, hashtag_phrase)

<ipython-input-2-81ccb421349a> in search_for_hashtags(consumer_key, consumer_secret, access_token, access_token_secret, hashtag_phrase)
     25 
     26         #write header row to spreadsheet
---> 27         w.writerow(['timestamp', 'tweet_text', 'username', 'all_hashtags', 'followers_count'])
     28 
     29         #for each tweet matching our hashtags, write relevant info to the spreadsheet

TypeError: a bytes-like object is required, not 'str' ```