Skip to content

Commit

Permalink
Update scraper.rb
Browse files Browse the repository at this point in the history
  • Loading branch information
jamasalbertastash committed Aug 9, 2023
1 parent 61c9943 commit 93bc9ff
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions scraper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@
agent = Mechanize.new

def scrape_page(page, comment_url)
if table.nil?
puts "No table found on the page."
return
end
table = page.at("#tbl_results")

table.search("tbody tr").each do |tr|
Expand Down

0 comments on commit 93bc9ff

Please sign in to comment.