Skip to content

phongvq/crawler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Night Watch crawler

INSTALLATION

Requirements

  • Node.js >= 8
  • Dotenv files: .env.production and/or .env.development

Instructions

$ yarn install
$ yarn start # yarn dev for development

DOCUMENTATION

Environment Variables

  • NODE_ENV (string): "development" or "production" environment
  • PORT (number): Port number to run the server
  • NOTIFICATION_SERVICE_ADDRESS (string): Address of notification service
  • MONGODB_URI (string): MongoDB URI
  • MONGODB_DB_NAME (string): Database name

Routes

GET /

Just for testing

Response body
  • iam: "/"

POST /

Execute a watch session

Request body
  • url (string): URL to crawl
  • cssSelectors (object): Mapping from CSS selectors to their types. Currently, only "string" is a valid type.

About

Night Watch crawler

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published