hotel_price 0.2.5 → 0.2.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/hotel_price/rakuten/rakuten_scraper.rb +10 -0
- data/lib/hotel_price/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2f638ac5be499fba87e0541c19e1dd7d1bbed4b3c5638587e2a4c5ae05a8e7aa
|
4
|
+
data.tar.gz: 56298398791b7af4eb97fbb78b24b880243d4df14e12ec4a94feee6e35cb5507
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b6d2d5f1fcc13f699dd4840758dc07dfc9c7c2bc2c41b781b98b869b5ccc1493c9c5402467feeaca7e429bda4b2739d0a6eaf9ca89b7d5f4b9719e07b08e054d
|
7
|
+
data.tar.gz: 4ed7d49997122f82e0e61801717e1a1b23e9936180fcc186ce30a9522a2882b64836a9867a6d52c662aaf6eb3137797725abefa07e59ee7858d06b4bb4a648a7
|
@@ -15,5 +15,15 @@ module HotelPrice::Rakuten
|
|
15
15
|
driver.quit
|
16
16
|
data
|
17
17
|
end
|
18
|
+
|
19
|
+
def self.get_selenium_driver
|
20
|
+
# firefox_capabilities = Selenium::WebDriver::Remote::Capabilities.firefox
|
21
|
+
# @driver = Selenium::WebDriver.for(:remote, url: "http://hub:4444/wd/hub", desired_capabilities: firefox_capabilities)
|
22
|
+
|
23
|
+
options = Selenium::WebDriver::Firefox::Options.new
|
24
|
+
options.add_argument("-headless")
|
25
|
+
Selenium::WebDriver.for :firefox, options: options
|
26
|
+
end
|
27
|
+
|
18
28
|
end
|
19
29
|
end
|
data/lib/hotel_price/version.rb
CHANGED