Fetcher is a tool to fetch content from the O’Reilly Learning platform and store it locally. For experimental use only!
Before you start, create an “Content” API token at https://learning.oreilly.com/account/api-tokens/. This token will be used to authenticate with the O’Reilly Learning platform.
Then:
auth
command and enter the content auth token you created earlier.fetcher
command.search
command to find and download content you want to experiment with.auth
Authenticate with the O’Reilly Learning platform using a long-lived JWT. This value will be saved in a file in your home directory, so keep it secure.
search
query
: Search terms to look for.--name
: (optional) Directory name to use. If you do not provide this argument, the direcotry will be named in the the form <identifier>-<title slug>
(e.g. 9781492047116-oreilly-saas-architecture
).--transcript
: (optional) Use this flag to retrieve a raw transcript with timecodes rather than markdown.fetch
identifier
: Identifier to fetch.--name
: (optional) Directory name to use. If you do not provide this argument, the direcotry will be named in the the form <identifier>-<title slug>
(e.g. 9781492047116-oreilly-saas-architecture
).--transcript
: (optional) Use this flag to retrieve a raw transcript with timecodes rather than markdown.cd
dir
: Path to change to.mkdir
dir
: Directory name.ls
pwd
version
help
exit