lib/insta_scraper/html.rb in insta_scraper-0.3.0 vs lib/insta_scraper/html.rb in insta_scraper-0.4.0
- old
+ new
@@ -2,16 +2,22 @@
class HTML
def html
@html ||= get_html
end
+ protected
+
+ def serialize_params
+ return '' if params.empty?
+
+ "?" + params.map {|k, v| "#{k}=#{v}"}.join('&')
+ end
+
private
def get_html
open(url).read
end
-
- private
def line_with_data
html.each_line.detect { |l| l[/sharedData/] }
end