hotel_price 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/exe/rakuten_travel_review +4 -0
- data/lib/hotel_price/version.rb +1 -1
- data/lib/rakuten_travel_review.rb +16 -0
- metadata +4 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 84e64ba87bd8e4d35752b41147c830ea877239ae850feb82df99a0fba20d7649
|
4
|
+
data.tar.gz: e09ae753d923c5c5b131cae56a909d70a30be866cf3a1fe8835902658a600ec5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d2a7900ed815a35db6ee2efa623b86770ad26809631e27de85ed217c56cb5d84e3aa638191804ee8a4e8c3a1b3d78929a459f8c8e9d0dc61292a417003d44adb
|
7
|
+
data.tar.gz: b42aa5a89db995e918ce27d6d2e09859f3e3b1d3f65f710a0382b7df059850a67d62150c9ae79a93dae3d153e67ff17abcc92bdbf853e9f090d9ad75726da83d
|
data/Gemfile.lock
CHANGED
data/lib/hotel_price/version.rb
CHANGED
@@ -0,0 +1,16 @@
|
|
1
|
+
require "hotel_price/version"
|
2
|
+
require "selenium-webdriver"
|
3
|
+
|
4
|
+
module RakutenTravelReview
|
5
|
+
class Error < StandardError; end
|
6
|
+
def self.rakuten_travel
|
7
|
+
# firefox_capabilities = Selenium::WebDriver::Remote::Capabilities.firefox
|
8
|
+
# @driver = Selenium::WebDriver.for(:remote, url: "http://hub:4444/wd/hub", desired_capabilities: firefox_capabilities)
|
9
|
+
driver = Selenium::WebDriver.for :firefox
|
10
|
+
driver.get('https://travel.rakuten.co.jp/')
|
11
|
+
sleep 2
|
12
|
+
title = driver.find_element(:tag_name, "p").text
|
13
|
+
driver.quit
|
14
|
+
title
|
15
|
+
end
|
16
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hotel_price
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- FUMI
|
@@ -57,6 +57,7 @@ email:
|
|
57
57
|
- fumitake.kawasaki@el-soul.com
|
58
58
|
executables:
|
59
59
|
- hotel_price
|
60
|
+
- rakuten_travel_review
|
60
61
|
extensions: []
|
61
62
|
extra_rdoc_files: []
|
62
63
|
files:
|
@@ -72,9 +73,11 @@ files:
|
|
72
73
|
- bin/console
|
73
74
|
- bin/setup
|
74
75
|
- exe/hotel_price
|
76
|
+
- exe/rakuten_travel_review
|
75
77
|
- hotel_price.gemspec
|
76
78
|
- lib/hotel_price.rb
|
77
79
|
- lib/hotel_price/version.rb
|
80
|
+
- lib/rakuten_travel_review.rb
|
78
81
|
homepage: https://twitter.com/Fumitas
|
79
82
|
licenses:
|
80
83
|
- MIT
|