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 failed with status code 999.

Console output of last run

The Morph Github App installed on jamezpolley needs access to the repository example_ruby_chrome_headless_scraper. Please go to https://github.com/apps/morph-io/installations/new/permissions?repository_ids%5B%5D=177900144&repository_ids%5B%5D=187941427&repository_ids%5B%5D=229189325&repository_ids%5B%5D=186961522&repository_ids%5B%5D=186960709&repository_ids%5B%5D=189337188&repository_ids%5B%5D=160617981&repository_ids%5B%5D=186969111&repository_ids%5B%5D=237375625&repository_ids%5B%5D=186966763&repository_ids%5B%5D=177900124&repository_ids%5B%5D=128887759&repository_ids%5B%5D=157314243&repository_ids%5B%5D=172443537&repository_ids%5B%5D=185325149&repository_ids%5B%5D=180955387&repository_ids%5B%5D=161434693&repository_ids%5B%5D=186540164&repository_ids%5B%5D=274279424&repository_ids%5B%5D=297501812&repository_ids%5B%5D=246733966&repository_ids%5B%5D=172621382&repository_ids%5B%5D=180928872&repository_ids%5B%5D=185505981&repository_ids%5B%5D=188640212&repository_ids%5B%5D=193009978&repository_ids%5B%5D=190689725&repository_ids%5B%5D=707463452&repository_ids%5B%5D=168463091&repository_ids%5B%5D=141211345&repository_ids%5B%5D=126745721&repository_ids%5B%5D=177900097&repository_ids%5B%5D=187308486&repository_ids%5B%5D=186761613&repository_ids%5B%5D=242864779&repository_ids%5B%5D=164060314&repository_ids%5B%5D=138673644&repository_ids%5B%5D=140508663&suggested_target_id=216918 Why? See https://morph.io/documentation/github_app

Statistics

Average successful run time: less than 20 seconds

Total run time: about 8 hours

Total cpu time used: about 1 hour

Total disk space used: 35.8 KB

History

  • Auto ran and failed .
  • Auto ran and failed .
  • Auto ran and failed .
  • Auto ran and failed .
  • Auto ran and failed .
  • ...
  • Created on morph.io

Show complete history