bookingscrapper 2.0.0 → 2.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/bookingscrapper.rb +2 -2
- 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: 73d2f0ca9b5a377dc769a8a79c13960ec0278afc3bee05d69f72cfcb890aef7b
|
4
|
+
data.tar.gz: 793c772b77746a0e1558669dc29fb80e6049bc68c3c39272ca1764a36d4ee50e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 339e6e6abf8478ba5dc39889c391ec9423572373c430ab70fdfe311b9839db9259a1d7f14efdfca4a3c2ffedf7138f4f0fd049ff1b7f5a6b5dde90ef60741097
|
7
|
+
data.tar.gz: 6396a92050995e7171c991dc7e232ac541624bcab75198fc03ffaf04f89a3a39dcc254f9ff90c3365511cc33e05aa5903ae24d8f48ec647441db1b6e8eba4915
|
data/lib/bookingscrapper.rb
CHANGED
@@ -7,13 +7,13 @@ def self.scrape(value)
|
|
7
7
|
|
8
8
|
outputArray = []
|
9
9
|
|
10
|
-
args = %w[--disable-infobars --headless window-size=1600,1200 --no-sandbox --disable-gpu]
|
10
|
+
args = %w[--disable-infobars --headless window-size=1600,1200 --no-sandbox --disable-gpu --disable-dev-shm-usage]
|
11
11
|
options = {
|
12
12
|
binary: ENV['GOOGLE_CHROME_BIN'],
|
13
13
|
prefs: { password_manager_enable: false, credentials_enable_service: false },
|
14
14
|
args: args
|
15
15
|
}
|
16
|
-
|
16
|
+
|
17
17
|
browser = Watir::Browser.new(:chrome, options: options)
|
18
18
|
browser.goto value
|
19
19
|
doc = Nokogiri::HTML.parse(browser.html)
|