The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

crawl-api-doc.pl - Script to read Spotify documentation page and generate classes based on endpoints and objects.

SYNOPSIS

    perl scripts/crawl-api-doc.pl -e -o

DESCRIPTION

This script gets Spotify documentation page and parse it to extract available endpoints and objects that Spotify API supports.

OPTIONS

-d https://spotify/doc/web-api/, --docs-uri=Docs URI

Spotify API documentation URI, default https://developer.spotify.com/documentation/web-api/reference/

-e, --endpoint-gen

If exists it will generate endpoint classes based on parsed response.

-o, --object-gen

If exists it will generate object classes based on parsed response.

-i, --init-class

If exists it will Generate/Overwrite Main classes for objects and endpoint Caution only use this option to rewrite main classes.

-j, --only-json

If exists it will only print out Spotify enpoints and object structure as JSON. Good to be piped to `jq` in order to view Spotify API structure

-l debug, --log-level=info

Log level used.