inbn / tweets-to-filler-text

Generate personalised filler text from your tweets

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

tweets-to-filler-text

Generate personalised filler text from your tweets.

Getting started

  1. Register for a twitter developer account and create a new app
  2. Duplicate .env.example in the root, rename it to .env and fill in:
    • TWITTER_API_KEY, TWITTER_API_SECRET_KEY, TWITTER_ACCESS_TOKEN, TWITTER_ACCESS_TOKEN_SECRET are the credentials from your twitter app
    • TWITTER_SCREEN_NAME is the handle of the twitter account you want to use for the source
  3. Install dependencies with npm i

Generating text

  1. Run npm run get-tweets. This should generate a file, _data/tweets.json containing tweets.
  2. Run npm run build-corpus. This should generate a file, _data/corpus.json containing the corpus used for generating text.
  3. Run npm run generate-text. A paragraph of text should now appear in the console.

About

Generate personalised filler text from your tweets


Languages

Language:JavaScript 96.0%Language:Shell 4.0%