Skip to content

Ruby script that fetches tweets from a Twitter user and condenses them into files.

Notifications You must be signed in to change notification settings

petermeglis/tweet-synthesizer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

51 Commits
 
 
 
 
 
 

Repository files navigation

Tweet Synthesizer

This tool is a ruby script that will fetch tweets from a Twitter user and condense them into files.

Prerequisites

Commands

Fetch Tweets

Run ruby commands/main.rb to view usage options.

Example Use

export TWITTER_API_BEARER_TOKEN=AAABBBCCCDDD
ruby commands/main.rb jack -o ~/tweets --max-results 50 --verbose --dry-run
ruby commands/main.rb jack -o ~/tweets --max-results 50 --verbose

Update Tweets for Users

Run ruby commands/update.rb to view usage options.

Example Use

# Setup input file
echo "jack, 1247616214769086465" >> input.csv

export TWITTER_API_BEARER_TOKEN=AAABBBCCCDDD
ruby commands/update.rb --dry-run --verbose -i input.csv -o ~/tweets --max-results 50
ruby commands/update.rb --verbose -i input.csv -o ~/tweets --max-results 50

Use Case

This tool is helping me synthesize tweets in https://github.com/petermeglis/twitter-brain

Notes

Add only additions to git add: git diff --stat=10000 | grep -E "\d\ [+]+[^-]+$" | cut -d "|" -f1 | sed 's/\(tweets.*\.md\)/\"\1\"/g' | xargs git add

About

Ruby script that fetches tweets from a Twitter user and condenses them into files.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages