![]() ![]() You can discover it’s properties from it’s website. wordcloud is a word cloud generator module. Lastly, we will create word cloud and mask it with our mask. Now we will read tweets that we saved before into “genekellyfans.txt” albeit, you can read it from API directly. We can get it from twitter developer page. Tweepy is a library that makes easy to access Twitter API. Tweets = api.user_timeline(screen_name="genekellyfans",count=1000) As a fan of him, I will get tweets from twitter, GeneKellyFans pageĪccess_token_secret="#ACCESS_TOKEN_SECRET"Īuth = tweepy.OAuthHandler(consumer_key, consumer_secret)Īuth.set_access_token(access_token, access_token_secret) Who is Gene Kelly? He was an actor and I like his movies. Tags are usually single words, and the importance of each tag is shown with font size or color. *Masking your word cloud with shape that you want WHAT IS WORD CLOUD?Ī tag cloud ( word cloud, or weighted list in visual design) is a novelty visual representation of text data, typically used to depict keyword metadata (tags) on websites, or to visualize free form text. Though a cloud is made of water drops or ice crystals floating in the sky, in this tutorial, we will make a cloud by words from our tweets. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |