Skip to content

Commit

Permalink
Corrected query string.
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelBone committed Aug 16, 2018
1 parent 8b31f55 commit 18b4897
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scraper.rb
Expand Up @@ -19,7 +19,7 @@
first_page = agent.get url
p "Getting first page again with a js= token"
p first_page.body.scan(/js=\d+/)[0]
url_query = url + first_page.body.scan(/js=\d+/)[0]
url_query = url + '?' + first_page.body.scan(/js=\d+/)[0]
first_page = agent.get url_query

p first_page.title.strip
Expand Down

0 comments on commit 18b4897

Please sign in to comment.