This tool is a ruby script that will fetch tweets from a Twitter user and condense them into files.
- You have access to the Twitter API, i.e. you have a Bearer Token. See Getting Access to get started.
- You have the Faraday HTTP Client gem installed:
gem install faraday
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
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
This tool is helping me synthesize tweets in https://github.com/petermeglis/twitter-brain
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