Skip to content

This gem scrapes FactCheck.org's /fake-news URL and returns a list of the 10 latest articles available with the option to read more.

License

Notifications You must be signed in to change notification settings

joshuaneedham/fake-news-cli-gem

Repository files navigation

"Fake News" Cli Gem

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.

Installation

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

Usage

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.

Contributing

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.

License

The gem is available as open source under the terms of the MIT License.

Code of Conduct

Everyone interacting in the FakeNewsCliGem project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the code of conduct.

About

This gem scrapes FactCheck.org's /fake-news URL and returns a list of the 10 latest articles available with the option to read more.

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published