Skip to content

Commit

Permalink
Update scraper.rb
Browse files Browse the repository at this point in the history
  • Loading branch information
robertbrook committed May 23, 2014
1 parent 8c599b0 commit 3f83d8c
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions scraper.rb
Expand Up @@ -6,11 +6,9 @@

agent = Mechanize.new

# # Read in a page
page = agent.get("http://theodi.org/blog/")
#
# # Find somehing on the page using css selectors
p page.at('h1.module-heading')

p page.xpath('//h1.module-heading')
#
# # Write out to the sqlite database using scraperwiki library
# ScraperWiki.save_sqlite(["name"], {"name" => "susan", "occupation" => "software developer"})
Expand Down

0 comments on commit 3f83d8c

Please sign in to comment.