jamezpolley / example_ruby_chrome_headless_scraper

Example scraper showing how to use Chrome headless from a ruby scraper


This is a simple scraper showing you how to use Chrome headless with Ruby. Here's what it does:

  1. Visits the morph.io home page
  2. Because the headless browser is a small window it now has to click the button to open the navigation menu so we can see the search box
  3. It enters a search for "planningalerts" into the search box and clicks the submit button
  4. After waiting for the results to appear (see the important gotcha in the code comments!) it outputs the full names of all the scrapers on the search results page

Any questions? Hit up the help forum.

Contributors mlandauer jamezpolley

Last run completed successfully .

Console output of last run

Injecting configuration and compiling... Injecting scraper and running... henare/planningalerts_scraperwiki_scrapers CloCkWeRX/sorell PuZZleDucK/rockingham-node planningalerts-scrapers/sorell openaustralia/PlanningAlerts_vanity_stats openaustralia/planningalerts_coverage JasonThomasData/Hume_City_Council openaustralia/jacaranda planningalerts-scrapers/northern_territory planningalerts-scrapers/charters_towers

Statistics

Average successful run time: less than 10 seconds

Total run time: 40 minutes

Total cpu time used: 5 minutes

Total disk space used: 33.4 KB

History

  • Auto ran revision f26447c1 and completed successfully .
    nothing changed in the database
  • Auto ran revision f26447c1 and completed successfully .
    nothing changed in the database
  • Auto ran revision f26447c1 and completed successfully .
    nothing changed in the database
  • Auto ran revision f26447c1 and completed successfully .
    nothing changed in the database
  • Auto ran revision f26447c1 and completed successfully .
    nothing changed in the database
  • ...
  • Created on morph.io

Show complete history