RoyalMailScraper
A simple page scraper for Royal Mail Track and Trace.
Installation
Add this line to your application's Gemfile:
gem 'royal_mail_scraper'
And then execute:
$ bundle
Or install it yourself as:
$ gem install royal_mail_scraper
Usage
tracker = RoyalMailScraper::Tracker.fetch('TRACKING_CODE')
p tracker.status
p tracker.message
p tracker.details
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request
Credits
This GEM is originally inspired by PHP-Royal-Mail-Track-and-Trace script.