Skip to content
This repository has been archived by the owner on Jul 17, 2020. It is now read-only.

mhluska/twitter-mass-follow

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

twitter-mass-follow

Follow a list of Twitter profile URLs

I used this to follow 100+ Bitcoin-related Twitter users from http://blog.coingecko.com/top-cryptocurrency-people-to-follow/.

  • I first retrieve the list using this JavaScript in the console:
document.querySelectorAll('a[href^="https://twitter.com/"]').map(function (item){ return item.href; }).join('\n');
  • Copy-paste into the file follow.txt

  • Make an app on https://apps.twitter.com/ with read/write permissions. Add the relevant keys to .env like so:

TWITTER_CONSUMER_KEY=<key>
TWITTER_CONSUMER_SECRET=<secret>
TWITTER_ACCESS_TOKEN=<token>
TWITTER_ACCESS_SECRET=<secret>
  • Run the script with $ ruby follow.rb. Or run it in the background with $ ruby follow.rb --silent &.

  • Reset follow.txt checkpoint with $ rm .username

About

Follow a list of Twitter profile URLs

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages