ctftime-scraper

1.0.2 • Public • Published

ctftime-scraper

Build Status

A scraper for https://ctftime.org/

requirements

  • node >= v9.4.0
  • npm >= 5.6.0

install

Using npm:

npm install --save ctftime-scraper

usage

get team

Return a Promise that resolve with the Team .

const ctftime = require('ctftime-scraper')
 
ctftime.getTeam(teamId)
  .then(team => console.log(team))
  .catch(error => console.error(error))

get writeup

Return a Promise that resolve with the Writeup .

const ctftime = require('ctftime-scraper')
 
ctftime.getWriteup(writeupId)
  .then(writeup => console.log(writeup))
  .catch(error => console.error(error))

developement

Install dependencies:

npm install

Run the linter:

npm run linter

Fix using linter:

npm run linter-fix

test

Feature tests are run daily, thank to Travis Ci new feature CRON Jobs. This way we know if the scraper is ever broken.

Run the tests:

npm test

license

MIT

Readme

Keywords

Package Sidebar

Install

npm i ctftime-scraper

Weekly Downloads

1

Version

1.0.2

License

MIT

Unpacked Size

8.58 kB

Total Files

13

Last publish

Collaborators

  • mastert