crawl-api-doc.pl - Script to read Spotify documentation page and generate classes based on endpoints and objects.
crawl-api-doc.pl
perl scripts/crawl-api-doc.pl -e -o
This script gets Spotify documentation page and parse it to extract available endpoints and objects that Spotify API supports.
Spotify API documentation URI, default https://developer.spotify.com/documentation/web-api/reference/
If exists it will generate endpoint classes based on parsed response.
If exists it will generate object classes based on parsed response.
If exists it will Generate/Overwrite Main classes for objects and endpoint Caution only use this option to rewrite main classes.
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
Log level used.
To install Net::Async::Spotify, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Net::Async::Spotify
CPAN shell
perl -MCPAN -e shell install Net::Async::Spotify
For more information on module installation, please visit the detailed CPAN module installation guide.