No commit activity in last 3 years
No release in over 3 years
Get listings of tour packages from Lonelyplanet
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 0

Runtime

>= 0
>= 0
 Project Readme

lonely_planet_tours Gem Version Build Status

The web scraper service we built provides listings of tour packages from Lonelyplanet based on a specified country. We have bundled this service into the lonely_planet_tours gem for you to use.

Note that we respect Lonelyplanet's 'robots.txt' file.

Usage

Install at the command line:

$ gem install lonely_planet_tours

or include it in your 'Gemfile' as:

gem 'lonely_planet_tours'

Try it yourself!

Run it from the command line as:

$ lonely_planet_tours country_name

or include it in your code:

Initialize class

require 'taiwan_tours'
require 'lonely_planet_tours'
country =  LonelyPlanetScrape::LonelyPlanetTours.new(country)

Use:

Get tours elements

tours = country.tours

OR

Get tours with specific total elements number. total_elements is optional

```ruby
tours = country.tours(total_elements)

Want to make improvements?

  1. Fork it ( https://github.com/ZhongMeiZhou/scraper_project )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request