mesh1nek0x0 / lambda-ghost

phantomjs sample in lambda by node-lambda
0 stars 0 forks source link

lambda-ghost :ghost:

Easy Web Scraping on AWS Lambda by node-lambda & Phantom.

:pushpin: Description

DEMO

:white_check_mark: Features


:floppy_disk: Install

Requirements

Step

  1. Install
    $ yarn install
  2. Setup
    $ yarn setup

:arrow_forward: Usage

how to run

$ yarn start

how to deploy ※Setting up AWS-CLI configuration yet? see here

### for deplyment, overwrite your lambda role arn & region & function name(OS X example bellow)
$ sed -i '' 's/\(AWS_ROLE_ARN=\).*/\1<your_lambda_arn>/' .env
$ sed -i '' 's/\(AWS_REGION=\).*/\1<your_region>/' .env
$ sed -i '' 's/\(AWS_FUNCTION_NAME=\).*/\1<your_lambda_name>/' .env

$ yarn deploy

:information_source: Anything else

nothing

:pencil: Author

mesh1nek0x0

:clipboard: LICENCE

MIT