##OVERVIEW We are going to create a command line application that allows you to look up the blog and twitter of your fellow classmates.
To start this project, we are going to scrape data from our student website: http://flatironschool-bk.herokuapp.com/
#DELIVERABLE Your project should look like this:
+ command_line_classmates
| +lib
|- scraper.rb
|- student.rb
| +spec
|- student_spec.rb
|- app.rb
Key:
lib
is a folder that holds our classesscraper.rb
holds our web scraper classstudent.rb
is our student classspec
is a folder that holds our specsstudent_spec.rb
is a test for our student classscraper_spec.rb
is a test for our scraperapp_spec.rb
is a test for our appapp.rb
is our command line app that uses our scraper and our student class
#Instructions
- Scaffold your app to make it match the deliverable.
- Get it on github!
- Write a test for your student class. It should
a. be initialized with 3 parameters:
name
,twitter
,blog
b. these should be readable and writable! - Write your Student class to make your test pass.
- Now write your scraper test. It should a. be initialized with a URL b. have a method to return a student's name c. have a method to return a student's blog url d. have a method to return a student's twitter url
- Now write your scraper to make your tests pass.