Generate personalised filler text from your tweets.
- Register for a twitter developer account and create a new app
- 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 appTWITTER_SCREEN_NAME
is the handle of the twitter account you want to use for the source
- Install dependencies with
npm i
- Run
npm run get-tweets
. This should generate a file,_data/tweets.json
containing tweets. - Run
npm run build-corpus
. This should generate a file,_data/corpus.json
containing the corpus used for generating text. - Run
npm run generate-text
. A paragraph of text should now appear in the console.