Skip to content

kimcoder/serverless-instagram-crawler

Repository files navigation

serverless-instagram-crawler

this is instagram hashtag crawler with serverless framework.

Config

you have to config like this. ( before deploy )

yarn run config

config
If you do config, will save a file .config.json

Serverless

Get environment variables from .config.json file

provider:
    environment:
        HASH_TAG: ${file(./.config.json):hashTag}
        COUNT: ${file(./.config.json):count}
        DYNAMODB_TABLE: ${file(./.config.json):dynamoDB}

also, lambda function has set schedule & timeout like this

it means that function will run every midnight (12:00)

functions:
    crawling:
        ..
        ..
        timeout: 180
        events:
          - schedule: cron(0 12 * * ? *)

scripts

yarn run config
yarn run test 
sls deploy

directory structure

.
├── dist/              # compiled source dir ( .js )
├── src/               # source dir ( .ts )
└── test/              # test source ( .js )

About

serverless, instagram hashtag crawler with lambda, dynamoDB

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy