Skip to content

Ruby Gem to crawl news sources looking for quotes from the presidential candidates (in support of the 2016files.com project)

License

Notifications You must be signed in to change notification settings

SandersForPresident/candidate_quotes

Repository files navigation

CandidateQuotes

Library and associated rake tasks to scrape and normalize transcripts from many different news sources

Installation

Add this line to your application's Gemfile:

gem 'candidate_quotes'

And then execute:

$ bundle

Or install it yourself as:

$ gem install candidate_quotes

Usage

You can test crawling of a source like so

bundle exec rake candidate_quotes:crawl_abc['http://abcnews.go.com/Politics/week-transcript-archive/story?id=16614108']
bundle exec rake candidate_quotes:crawl_cnn['']
bundle exec rake candidate_quotes:crawl_msnbc['http://www.nbcnews.com/id/57810297/ns/msnbc-hardball_with_chris_matthews/']

Development

After checking out the repo, run bin/setup to install dependencies. Then, run rake spec to run the tests. You can also run bin/console for an interactive prompt that will allow you to experiment.

To install this gem onto your local machine, run bundle exec rake install. To release a new version, update the version number in version.rb, and then run bundle exec rake release, which will create a git tag for the version, push git commits and tags, and push the .gem file to rubygems.org.

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/SandersForPresident/candidate_quotes. 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.

About

Ruby Gem to crawl news sources looking for quotes from the presidential candidates (in support of the 2016files.com project)

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published