Skip to content

Instantly share code, notes, and snippets.

@simecek
Created August 18, 2017 14:00
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save simecek/ac263a371830cafe309d88a5d099b887 to your computer and use it in GitHub Desktop.
Save simecek/ac263a371830cafe309d88a5d099b887 to your computer and use it in GitHub Desktop.
Generate wordcloud of followers' descriptions
Display the source blob
Display the rendered blob
Raw
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@pybites
Copy link

pybites commented Aug 22, 2017

cool!

I had to add this switch to not run into twitter API's rate exceeded errors:

api = tweepy.API(auth, wait_on_rate_limit=True)

@pybites
Copy link

pybites commented Aug 22, 2017

and I ended up using pil as matplotlib didn't work for me:

wordcloud.to_image()
image.show()

https://gist.github.com/pybites/e78118f606831d2b152dfeee9c527b76

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