FLATIRON TWITTER CLI
a command-line tool for tweeting @ Flatiron School
This CLI is an extension of sferik's t gem that allows users to auto-follow all members of the current Flatiron Web Intensive class, as well as all current Flatiron Instructors.
This project is very much still a work in progress. Please contribute by a) refactoring existing feature code and/or b) building out any of the 'pending' features listed below.
bundle install from terminal to install required gems.
You'll want to configure OAuth for Twitter's API first, so after you bundle, run
t authorize and follow the instructions on-screen. If you run into any trouble, please refer to the full auth instructions available on the t gem README.
bin/run from terminal to start the program.
help to see a list of Flatiron-specific commands.
t help to see a list of Twitter CLI commands.
follow, then enter one of the subcommands below:
students to follow all current Flatiron students.
instructors to follow all current Flatiron instructors.
all to follow all current Flatiron students and instructors.
list, then enter one of the subcommands below:
students to see a full list of current Flatiron students and their Twitter handles.
instructors to see a full list of current Flatiron instructors and their Twitter handles.
all to see a full list of current Flatiron students and instructors and their Twitter handles.
Twitter t gem commands
exit to quit the CLI.
Add 'staff' feature to
followcommands. A StaffScraper class is built, but currently returns all staff including instructors. Needs to be refactored to return non-instructor staff only.
select classfeature so users can choose to list/follow other Flatiron School classes, like Ruby-006, ios-001, etc. Currently app can only be used with Ruby-007 students and instructors.
Scraper method refactoring.
InstructorScrapermethods are not DRY; can probably be moved into a
Scrapablemodule or something similar.
Improve load time upon initialization.
Fix open-uri RuntimeError:
/Users/ktmoney/.rvm/rubies/ruby-2.1.5/lib/ruby/2.1.0/open-uri.rb:231:in `open_loop': HTTP redirection loop: http://flatironschool.com/team (RuntimeError) from /Users/ktmoney/.rvm/rubies/ruby-2.1.5/lib/ruby/2.1.0/open-uri.rb:149:in `open_uri' from /Users/ktmoney/.rvm/rubies/ruby-2.1.5/lib/ruby/2.1.0/open-uri.rb:704:in `open' from /Users/ktmoney/.rvm/rubies/ruby-2.1.5/lib/ruby/2.1.0/open-uri.rb:34:in `open' from /Users/ktmoney/Documents/Documents/Flatiron/flatiron_projects/flatiron-twitter/lib/instructor_scraper.rb:7:in `call' from /Users/ktmoney/Documents/Documents/Flatiron/flatiron_projects/flatiron-twitter/lib/controllers/flatiron_twitter_cli.rb:8:in `initialize' from bin/run:5:in `new' from bin/run:5:in `main'
Happens inconsistently upon running
bin/run command. Usually resolved by running
bin/run command again.
- Gemify. After the above kinks are ironed out, turn this little program into a legit gem.