taiwan_tours 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +10 -8
- data/bin/taiwan_tours +1 -1
- data/lib/taiwan_tours/lonelyplanet_scrap.rb +0 -2
- data/lib/taiwan_tours/version.rb +2 -2
- data/taiwan_tours.gemspec +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: d40515b274c6f3656403d0f207ed00fafb3d222f
|
|
4
|
+
data.tar.gz: d8e945207728f7b568802a08438ab7363dc594e7
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 9a63cb5a5fd0e12925435598025203a9bd0c09c36bbbec2c7ea834845e5267b6f3a8063f2d3cdf6f32ffa35809218244b8807fa5a10a3c4b68fa1299053fcdc9
|
|
7
|
+
data.tar.gz: 3db382ef36c1edad61b945239b68b62cf8dcb23ffc32ef98aef3446d886ecf248083856c7bbead04b7c2357f38287721887b674141376e76c1873c3cb40b3a0f
|
data/README.md
CHANGED
|
@@ -1,32 +1,34 @@
|
|
|
1
|
-
# taiwan_tours [](https://travis-ci.org/ZhongMeiZhou/scraper_project)
|
|
2
1
|
|
|
3
|
-
The lonelyplanet web scraper service traverses details of Taiwan tour packages in a easiest way and with simple steps.
|
|
4
2
|
|
|
5
|
-
|
|
3
|
+
# taiwan_tours [](https://badge.fury.io/rb/taiwan_tours) [](https://travis-ci.org/ZhongMeiZhou/scraper_project)
|
|
6
4
|
|
|
5
|
+
The web scraper service we built provides listings of Taiwan tour packages from Lonelyplanet. We have bundled this service into the taiwan_tours gem for you to use.
|
|
7
6
|
|
|
8
|
-
|
|
7
|
+
Note that we respect Lonelyplanet's 'robots.txt' file.
|
|
9
8
|
|
|
10
|
-
|
|
9
|
+
|
|
10
|
+
## Usage
|
|
11
|
+
|
|
12
|
+
Install at the command line:
|
|
11
13
|
|
|
12
14
|
```sh
|
|
13
15
|
$ gem install taiwan_tours
|
|
14
16
|
```
|
|
15
17
|
|
|
16
|
-
|
|
18
|
+
or include it in your 'Gemfile' as:
|
|
17
19
|
|
|
18
20
|
```ruby
|
|
19
21
|
gem taiwan_tours
|
|
20
22
|
```
|
|
21
23
|
|
|
22
24
|
## Try it yourself!
|
|
23
|
-
Run it from the command line as
|
|
25
|
+
Run it from the command line as:
|
|
24
26
|
|
|
25
27
|
```sh
|
|
26
28
|
$ taiwan_tours
|
|
27
29
|
```
|
|
28
30
|
|
|
29
|
-
or
|
|
31
|
+
or include it in your code:
|
|
30
32
|
|
|
31
33
|
```ruby
|
|
32
34
|
require 'taiwan_tours'
|
data/bin/taiwan_tours
CHANGED
|
@@ -5,8 +5,6 @@ require 'json'
|
|
|
5
5
|
# Module defines LonelyPlanetTours class which handles scraping of lonelyplanet Taiwan tours page
|
|
6
6
|
module LonelyPlanetScrape
|
|
7
7
|
class LonelyPlanetTours
|
|
8
|
-
# Define constants needed for scraping
|
|
9
|
-
# Please if the test for uri fails replace contant manually
|
|
10
8
|
LONELYPLANET_URL = 'http://www.lonelyplanet.com'
|
|
11
9
|
TOUR_RELATIVE_DIR = 'taiwan/tours'
|
|
12
10
|
|
data/lib/taiwan_tours/version.rb
CHANGED
data/taiwan_tours.gemspec
CHANGED
|
@@ -7,7 +7,7 @@ Gem::Specification.new do |s|
|
|
|
7
7
|
s.date = LonelyPlanetScrape::DATE
|
|
8
8
|
s.executables << 'taiwan_tours'
|
|
9
9
|
s.summary = 'The lonelyplanet web scraper service traverses details of Taiwan tour packages'
|
|
10
|
-
s.description = 'Get
|
|
10
|
+
s.description = 'Get listings of taiwan tour packages from Lonelyplanet'
|
|
11
11
|
s.authors = ['Bayardo Salgado', 'Cesar Ordoñez','Eduardo Salazar','Nicole Weatherburne']
|
|
12
12
|
s.email = ['bayardo_salgado@yahoo.com','cesar','esalazar922@gmail.com','nikkiweat@gmail.com']
|
|
13
13
|
s.files = `git ls-files`.split("\n")
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: taiwan_tours
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Bayardo Salgado
|
|
@@ -11,7 +11,7 @@ authors:
|
|
|
11
11
|
autorequire:
|
|
12
12
|
bindir: bin
|
|
13
13
|
cert_chain: []
|
|
14
|
-
date: 2015-10-
|
|
14
|
+
date: 2015-10-17 00:00:00.000000000 Z
|
|
15
15
|
dependencies:
|
|
16
16
|
- !ruby/object:Gem::Dependency
|
|
17
17
|
name: minitest
|
|
@@ -83,7 +83,7 @@ dependencies:
|
|
|
83
83
|
- - ">="
|
|
84
84
|
- !ruby/object:Gem::Version
|
|
85
85
|
version: '0'
|
|
86
|
-
description: Get
|
|
86
|
+
description: Get listings of taiwan tour packages from Lonelyplanet
|
|
87
87
|
email:
|
|
88
88
|
- bayardo_salgado@yahoo.com
|
|
89
89
|
- cesar
|
|
@@ -131,7 +131,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
131
131
|
version: '0'
|
|
132
132
|
requirements: []
|
|
133
133
|
rubyforge_project:
|
|
134
|
-
rubygems_version: 2.4.
|
|
134
|
+
rubygems_version: 2.4.5
|
|
135
135
|
signing_key:
|
|
136
136
|
specification_version: 4
|
|
137
137
|
summary: The lonelyplanet web scraper service traverses details of Taiwan tour packages
|