{"id":15632581,"url":"https://github.com/jamiew/tweet-archiver","last_synced_at":"2026-02-28T17:32:40.991Z","repository":{"id":3796971,"uuid":"4875646","full_name":"jamiew/tweet-archiver","owner":"jamiew","description":"Save tweets from Twitter; text, raw responses, screenshots and more","archived":false,"fork":false,"pushed_at":"2013-05-17T17:30:30.000Z","size":117,"stargazers_count":6,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2026-02-19T04:34:44.385Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jamiew.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2012-07-03T18:15:28.000Z","updated_at":"2021-12-06T01:17:35.000Z","dependencies_parsed_at":"2022-09-16T02:51:24.320Z","dependency_job_id":null,"html_url":"https://github.com/jamiew/tweet-archiver","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jamiew/tweet-archiver","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jamiew%2Ftweet-archiver","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jamiew%2Ftweet-archiver/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jamiew%2Ftweet-archiver/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jamiew%2Ftweet-archiver/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jamiew","download_url":"https://codeload.github.com/jamiew/tweet-archiver/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jamiew%2Ftweet-archiver/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29944768,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-28T13:49:17.081Z","status":"ssl_error","status_checked_at":"2026-02-28T13:48:50.396Z","response_time":90,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-03T10:44:39.052Z","updated_at":"2026-02-28T17:32:40.969Z","avatar_url":"https://github.com/jamiew.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"tweet-archiver\n==============\n\nSaves tweets from Twitter's streaming API. Can be run on Heroku for free (Cedar stack; only needs 1 dyno)\n\nThere's a bunch of these out there, but this one does all the things I want.\n\n* Saves tweets as text files\n* Takes screenshots\n* Uploads said screenshots to imgur\n* Posts to Twitter\n\nAll the actual code is in the Rakefile (FIXME)\n\nUsage\n-----\n\nCopy config.sample.yml to config.yml and edit\n\nYou can generate Twitter OAuth tokens by registering a new application on\n\u003chttp://dev.twitter.com\u003e, making it read-write, and clicking 'Generate tokens'\n\n```bash\nbundle exec rake tweetscan\n```\n\nOr with Foreman, which is how its run on Heroku:\n\n```bash\nbundle exec foreman start\n```\n\nRun on Heroku\n-------------\n\nWe just bulk-stash a JSON version of the config.yml in a Heroku variable to use for configuration. Sort of ghetto, but works great.\n\n```bash\ncd tweet-archive\n# edit config.yml; test locally that it all works\nheroku create mytweets --stack=cedar\nheroku config:add TWEET_ARCHIVE_CONFIG=$(ruby -e \"require 'yaml'; require 'json'; puts YAML.load(File.open('config.yml').read).to_json\")\ngit push heroku master\nheroku scale stream=1\n```\n\nNote that running two instances of this with the same credentials seems verboten by the streaming API; just run one instance.\n\nTODO\n----\n\n* Needs a better name\n* Save tweets as database records (WIP in the `database` branch)\n* S3 or Dropbox file-saving support (like IFTTT)\n* Publish to a static HTML file or e.g. GitHub pages\n* Post to IRC/HipChat/Campfire/XMPP\n* Could be fun to hack support for storing to git, Pastebin and other non-standard storage engines\n\nContributing\n------------\n\n1. Fork it\n2. Create your feature branch (`git checkout -b my-new-feature`)\n3. Commit your changes (`git commit -am 'Added some feature'`)\n4. Push to the branch (`git push origin my-new-feature`)\n5. Create new Pull Request\n\n\nAuthors\n-------\n\n* [@jamiew](https://github.com/jamiew)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjamiew%2Ftweet-archiver","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjamiew%2Ftweet-archiver","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjamiew%2Ftweet-archiver/lists"}