/source-as-a-service

Obtain html source as a service. Avoid large html request dependencies and parse html after javascript has loaded.

Primary LanguageJavaScriptApache License 2.0Apache-2.0

Source as a Service

The following is offered as a solution if you are needing to get source HTML from a site as though you were visiting it (generally after javascript and other basic elements of the DOM have loaded).

To load it

  1. Clone this repository
  2. Install and setup serverless
  3. Follow the instructions to obtain selenium to run on lambda at the following github repository (sadly there is no npm for this package at the time of this writing)
  4. Unzip the selenium libraries in the same folder as your clone
  5. Deploy using serverless deploy