This gem was created as a project for Learn.co. It scrapes FactCheck.org/fake-news and creates objects for the 10 latest "Fake News" category articles.
Add this line to your application's Gemfile:
gem 'fake_news_cli_gem'
And then execute:
$ bundle
Or install it yourself as:
$ gem install fake_news_cli_gem
After you bundle install
the gem you can simply run bin/fake-news
.
Once ran the gem initially lists 10 teaser articles.
You have a few options from this point which are clearly listed. If you find an article that you would like to read simple type "y
" and then it requires and article number or ID. After you input the article you would like to read it is returned.
After you have read the article you have the option of opening the webpage. If you choose not to read the webpage it returns to the initial options of "list
"ing the article teasers or "exit
"ing the CLI.
Bug reports and pull requests are welcome on GitHub at https://github.com/joshuaneedham/fake_news_cli_gem. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct.
The gem is available as open source under the terms of the MIT License.
Everyone interacting in the FakeNewsCliGem project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the code of conduct.