@chcaa/zendesk-scraper
v1.0.2
Published
CLI to scrape zendesk tickets
Downloads
2
Readme
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 [email protected] -u https://example.zendesk.com -d ./ -s 1689403425 -e 1692089025
node src/index.js -t eXaMpLeToKeN -m [email protected] -u https://example.zendesk.com -d ./ -s 1689403425 -e 1692089025