Skip to content

Latest commit

 

History

History
30 lines (17 loc) · 1.05 KB

readme.md

File metadata and controls

30 lines (17 loc) · 1.05 KB

word-cloud

About

Create pretty visual word clouds using PyTagCloud from a Facebook message history.

Installation

  1. Install PyTagCloud.

  2. Install the Python SDK for Facebook. You need to use my fork as I added some paging functions that were not present in the old sdk.

  3. Get a Facebook access token with permission to read the user's inbox from here. Eventually I will sort of Facebook permissions properly. Save this in the root project directory as access_token.txt.

  4. Run as:

      $ python word-cloud "John Smith"
    
  5. Admire the word cloud generated at cloud.png.

Current Status

Currently the code works for most users. Occasionally I find that the Facebook API returns empty messages for some users and I haven't yet found a way to fix this.