1.0.2 • Published 8 months ago
@chcaa/zendesk-scraper v1.0.2
Zendesk Scraper
A tool for scraping Zendesk API to get tickets
Installation
- Install node.js version 16.x or higher
Usage
Run one of the following:
$ npx @chcaa/zendesk-scraper@latest ...
Local Usage
- Clone this repository
- Navigate to the root of the repository and run
$ npm install
$ node src/index.js ...
CLI options
-t, --token <token>
required - The Zendesk API token (required)-m, --email <email>
required - The user email the token is associated with (required)-u, --url <url>
required - The URL of the Zendesk instance (required)-d, --destination <path>
optional - The path to the destination folder (required)-s, --fromDate <date>
required - The date to fetch data from UNIX timestamp (default 0)-e, --toDate <date>
required - The date to fetch data to UNIX timestamp (default now)
Example
$ npx @chcaa/zendesk-scraper@latest -t eXaMpLeToKeN -m example@example.com -u https://example.zendesk.com -d ./ -s 1689403425 -e 1692089025
node src/index.js -t eXaMpLeToKeN -m example@example.com -u https://example.zendesk.com -d ./ -s 1689403425 -e 1692089025