Skip to content

Input error.  #10

Description

@rahulbordoloi

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' ```

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions