grabzit 3.5.5 → 3.5.6
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/lib/grabzit/htmloptions.rb +17 -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: e1484676d666a8e9cae4448b2005b1be6d9b4f42b2d07d63e127aef3dabe2fa4
|
|
4
|
+
data.tar.gz: 39e284516c8cb45281b35c23ef488aa3047c1e8939db8313ccf276f703c28c9b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: da6ef1b151e29232c53449fce8c6110f43883f32c5c00729362df5f8005015cbb66d9dae3417252356ed859d823bbc520d32aa9bf40bbced2f23b949fec83c42
|
|
7
|
+
data.tar.gz: 7bbf2210b6aad5b1ecfd75baab699e49277bd7ffad0da1b900eff4d5bac838f3fe384bfa72798fdab2b8c6f725d0979a80dd8f22b409cb46f089d593911f23fe
|
data/lib/grabzit/htmloptions.rb
CHANGED
|
@@ -16,6 +16,7 @@ module GrabzIt
|
|
|
16
16
|
@address = nil
|
|
17
17
|
@clickElement = nil
|
|
18
18
|
@jsCode = nil
|
|
19
|
+
@inlineHTML = false
|
|
19
20
|
end
|
|
20
21
|
|
|
21
22
|
# @return [Integer] the width of the browser in pixels
|
|
@@ -122,6 +123,19 @@ module GrabzIt
|
|
|
122
123
|
@noCookieNotifications = value
|
|
123
124
|
end
|
|
124
125
|
|
|
126
|
+
# @return [Boolean] get if the HTML should be inlined
|
|
127
|
+
def inlineHTML
|
|
128
|
+
@inlineHTML
|
|
129
|
+
end
|
|
130
|
+
|
|
131
|
+
# Set to true if the resources in a web page should be inlined in the HTML
|
|
132
|
+
#
|
|
133
|
+
# @param value [Boolean] HTML should be inlined
|
|
134
|
+
# @return [void]
|
|
135
|
+
def inlineHTML=(value)
|
|
136
|
+
@inlineHTML = value
|
|
137
|
+
end
|
|
138
|
+
|
|
125
139
|
# @return [String] get the URL to execute the HTML code in
|
|
126
140
|
def address
|
|
127
141
|
@address
|
|
@@ -165,7 +179,7 @@ module GrabzIt
|
|
|
165
179
|
items.push(GrabzIt::Utility.nil_check(url))
|
|
166
180
|
end
|
|
167
181
|
|
|
168
|
-
items.push(GrabzIt::Utility.nil_check(callBackURL),GrabzIt::Utility.nil_int_check(@browserHeight),GrabzIt::Utility.nil_int_check(@browserWidth),GrabzIt::Utility.nil_check(@customId),GrabzIt::Utility.nil_int_check(@delay),GrabzIt::Utility.nil_int_check(@requestAs),GrabzIt::Utility.nil_check(@country),GrabzIt::Utility.nil_check(@exportURL),GrabzIt::Utility.nil_check(@waitForElement),GrabzIt::Utility.nil_check(@encryptionKey),GrabzIt::Utility.b_to_str(@noAds),GrabzIt::Utility.nil_check(@post),GrabzIt::Utility.nil_check(@proxy),GrabzIt::Utility.nil_check(@address),GrabzIt::Utility.b_to_str(@noCookieNotifications),GrabzIt::Utility.nil_check(@clickElement),GrabzIt::Utility.nil_check(@jsCode))
|
|
182
|
+
items.push(GrabzIt::Utility.nil_check(callBackURL),GrabzIt::Utility.nil_int_check(@browserHeight),GrabzIt::Utility.nil_int_check(@browserWidth),GrabzIt::Utility.nil_check(@customId),GrabzIt::Utility.nil_int_check(@delay),GrabzIt::Utility.nil_int_check(@requestAs),GrabzIt::Utility.nil_check(@country),GrabzIt::Utility.nil_check(@exportURL),GrabzIt::Utility.nil_check(@waitForElement),GrabzIt::Utility.nil_check(@encryptionKey),GrabzIt::Utility.b_to_str(@noAds),GrabzIt::Utility.nil_check(@post),GrabzIt::Utility.nil_check(@proxy),GrabzIt::Utility.nil_check(@address),GrabzIt::Utility.b_to_str(@noCookieNotifications),GrabzIt::Utility.nil_check(@clickElement),GrabzIt::Utility.nil_check(@jsCode),GrabzIt::Utility.b_to_str(@inlineHTML))
|
|
169
183
|
|
|
170
184
|
return items.join("|")
|
|
171
185
|
end
|
|
@@ -184,7 +198,8 @@ module GrabzIt
|
|
|
184
198
|
params['nonotify'] = GrabzIt::Utility.b_to_str(@noCookieNotifications)
|
|
185
199
|
params['click'] = GrabzIt::Utility.nil_check(@clickElement)
|
|
186
200
|
params['jscode'] = GrabzIt::Utility.nil_check(@jsCode)
|
|
187
|
-
|
|
201
|
+
params['inlinehtml'] = GrabzIt::Utility.b_to_str(@inlineHTML)
|
|
202
|
+
|
|
188
203
|
return params
|
|
189
204
|
end
|
|
190
205
|
end
|