1.0.1 • Published 3 years ago

dota2-ti10-schedule-scraper v1.0.1

Weekly downloads
-
License
GPL-3.0-or-later
Repository
github
Last release
3 years ago

dota2-ti10-schedule-scraper

A puppeteer based web scraper for dota2 event schedule

Usage

npm install -g dota2-ti10-schedule-scraper
#Options:
#  -o --output-dir <output-dir>  Output directory path

# 1. [SCRAPE] Fetch event schedules
dota2-ti10-scraper --output-dir=<output-dir>

# e.g. dota2-ti10-scraper --output-dir=./schedules

# NOTE:
# 1. JSON files will be written in specified {output-dir} with the name 'dota2-ti10-schedule.json'
# 2. ICAL files will be written in specified {output-dir} with the name 'dota2-ti10-schedule.ical'

Tip: You can also use this utility without installing the package

# Fetch event schedules
npx dota2-ti10-schedule-scraper --output-dir=<output-dir>

Disclaimer:

  • This tool uses puppeteer to load web pages from dota2.com to scrape schedule data.
  • Make sure to sensibly use this tool if used in automation, and not overwhelm the web servers.
  • YOU (user) will be completely responsible for usage of this tool. The developer CAN'T be blamed for the abuse of this tool.