Package: getdat
ATTENTION- Anna's Archive enforces web scraping blocks through Cloudflare. The site is also subject to change. Theebookcommand may returnNo Search Resultsfound. A fix is in the works that may involve a new project and archiving this one. A long term solution ishosting an instance of Anna's Archivewithcommunity supportor possibly creating a cli by forking the main repo and building an api.GetDatA command line utility for getting resources available onlineGetDat Theme MusicTable of ContentsInstallation MethodsCommandsLocal DevelopmentDeploymentPublishing GetdatPublishing DocsContributorsInstallation MethodsPYPI - Stable Release:->pipxinstallgetdatFrom Head commit of Repository:->pipxinstallgit+https://github.com/Audiosutras/getdat.gitCommandsJobLaunchesBraintrust, the job board powered by blockchain, in your default browserSportLaunchesTotalsportkin your default browserCinemaLaunchesmovie-web.appin your default browser->getdatcinemaEbookSearch and download an ebook available throughAnna's Archive. You can think of this command as "headless" Anna's ArchiveThe demo for this command downloaded an epub format of Robert Louis Stevenson's and N.C. Wyeth's bookTreasure Island. This book is in the public domain.The demo for this command opens the downloaded ebook usingepr, a terminal epub reader to show the contents of the downloaded book. You can expect higher ebook quality by using a desktop e-reader likelibrumAnna's ArchiveSciDBsearch is not yet supported.->getdatebook[OPTIONS][Q]ARGUMENTSNameHelpQSearchExample:->getdatebook"Treasure Island Stevenson"or->getdatebookTreasureIslandStevensonOPTIONS->getdatebook--help
Usage:getdatebook[OPTIONS][Q]...SearchanddownloadanebookavailablethroughAnna's Archiveex: getdat ebook <Search>Options:-o, --output_dir TEXT           Path to ebook'soutputdirectoryfromhomedirectory.Pathmustbeprefixedby'~'onUnixor'~user'onWindows.ThisargumentoverridesGETDAT_BOOK_DIRenvvarifset.Outputsbooktoworkingdirectoryifneitherareset.-e,--ext[pdf|epub|mobi|cbr|cbz|fb2|fb2.zip|azw3|djvu]Preferredebookextensionforebooksinsearchresults.-l,--langTEXTPreferredlanguageofebooksinsearchresults.ProvidedLanguagemustbeISO639-1format.Languageregionextensionsupported.Filteringbymultiplelanguagessupported.Examples:English-en,Spanish-es,TraditionalChinese-zh-Hant,MultipleLangauges-en,es,zh-Hant-i,--instance[org|gs|se]TheinstanceofAnna'sArchiveyouwouldliketouseforyoursearch:https://annas-archive.org,https://annas-archive.gs,https://annas-archive.se-Default:org--helpShowthismessageandexit.Example:->getdatebookTreasureIslandStevenson--ext=epub--output_dir=~/books/epub/--instance=gs--lang=en,es,zh-Hantor->getdatebook"Treasure Island Stevenson"-eepub-o~/books/epub-igs-lesor->getdatebook"Treasure Island Stevenson"Environment VariableGETDAT_BOOK_DIR- Path from home directory to destination directory. Ignored if--output_diris specified as anoptionLocal DevelopmentPython Version:3.11. To install python on MacOS & Debian-based systems->sudoaptinstallsoftware-properties-common
->sudoadd-apt-repositoryppa:deadsnakes/ppa
->sudoaptupdate
->sudoaptinstallpython3.11This python package usespoetryfor dependency management. To install:# install pipx if you have not already->python3-mpipinstall--userpipx
->python3-mpipxensurepath# install poetry->pipxinstallpoetryAssuming that you haveforked the repositoryand have a copy on your local machine. Within thegetdatdirectory, install dependencies and open avirtualenvshell managed by poetry.->poetryinstall
->poetryshell(getdat-py3.11)->To run/develop the cli program.(getdat-py3.11)->getdat
Usage:getdat[OPTIONS]COMMAND[ARGS]...Acommandlineutilityforgettingresourcesavailableonline

Options:--helpShowthismessageandexit.

Commands:cinemaLaunchesmovie-web.appinyourdefaultbrowserebookSearchanddownloadanebookavailablethroughAnna'sArchive...Checkoutourdocsathttps://github.com/Audiosutras/getdat/docsformoredetailsProject usespytestfor unit testing. Test run quickly with the help ofpytest-mock(getdat-py3.11)->pytest-v--cov=.tests/Style guide and code check enforced withpre-commit(getdat-py3.11)->pre-commitinstallRunningdocssite locally for making changes togithub-pagesrequiresrubyto be installed. After installation make sure to installbundlerwithgem install jekyll bundleras well:->cddocs
->bundlerinstall
->bundlerexecjekyllbuild
->bundlerexecjekyllserveDeploymentPublishing GetdatWorkflow:masterbranchInpyproject.tomlbumpthe version number*.*.*Create agit tagwith the new version number*.*.*you specified inpyproject.toml.Push the newly created taggit push origin *.*.*to the repository. This will trigger thepre-release.ymlgithub workflow to publish our package totest.pypi. The pre-release can be seenherefor testing. Install with:->python3.11-mpipinstall--index-urlhttps://test.pypi.org/simple/getdat--extra-index-urlhttps://pypi.org/simplebeautifulsoup4requestsclick- *Note*: `--extra-index-url` option is pulling dependencies from `pypi.org` and not `test.pypi.org` though our package is coming in from `test.pypi.org`. Make sure to add all dependencies from `[tool.poetry.dependencies]` in `pyproject.toml` (except python) before running this command.Createareleaseon github. Make sure to selectTagsfrom the toggle menu. Select the latest tag (highest version number). Name the releaseRelease *.*.*. Make sure the version number inpyproject.tomlsyncs up with the release version.ClickPublish release. This will kick off ourrelease.ymlworkflow to publish our package topypi. The release can be seenhere and installedfor production use. Install with:->pipxinstallgetdatPublishing DocsDocs are published to thesitewhen a release is created for the python package to pypi.org. This isautomated, but can be triggered manually by running the github workflowDeploy Jekyll with GitHub Pages dependencies preinstalled.Contributors