Skip to content

Commit

Permalink
output 2nd html
Browse files Browse the repository at this point in the history
  • Loading branch information
maxious committed Mar 13, 2019
1 parent e6602e8 commit ed8f6d5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scraper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ def to_yaml_style
:body => body
)
html = res.body
puts html
# html = open("test2.html")
page = Nokogiri::HTML(html)

Expand All @@ -71,8 +72,7 @@ def to_yaml_style
lobbyist_firm["trading_name"] = lobby_page['business_trading_name'].strip()
lobbyist_firm["abn"] = lobby_page['abn'].gsub(' ', '').strip()

lobtab = page.search('.tableSort').first.at('tbody').children

# lobtab = page.search('.tableSort').first.at('tbody').children

# lobbyist_firm["status"] = lobtab[9].at('td').children[1].text.strip
# lobbyist_firm["last_updated"] = lobtab[5].at('td').children[1].text.strip
Expand Down

0 comments on commit ed8f6d5

Please sign in to comment.