Skip to content

Commit

Permalink
Indexed array.
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelBone committed Aug 16, 2018
1 parent d6ff8ab commit 8b31f55
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scraper.rb
Expand Up @@ -18,8 +18,8 @@
p "Getting first page"
first_page = agent.get url
p "Getting first page again with a js= token"
p first_page.body.scan(/js=\d+/)
url_query = url + first_page.body.scan(/js=\d+/)
p 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 8b31f55

Please sign in to comment.