audiosutras / getdat Goto Github PK
View Code? Open in Web Editor NEWA command line utility for getting resources available online
Home Page: https://getdat.chrisdixononcode.dev
License: MIT License
A command line utility for getting resources available online
Home Page: https://getdat.chrisdixononcode.dev
License: MIT License
After an email exchange with Anna's Archivist the main sites for Anna's Archive enforce limits on web scraping. This cli app depends on web scraping. Currently looking into hosting an instance myself or other workarounds.
&sort=:value
Possible values:
Most relevant - (default) - ''
Newest - newest
Oldest - oldest
Smallest - smallest
Largest - largest
Update AnnasEbook._echo_results
to use a cli table package for echoing result>
Potential Packages:
&content=f"{value}"
Key: Value pairs
book_nonfiction
book_fiction
book_unknown
journal_article
book_comic
magazine
standards_document
Currently we use webbrowser.open_new_tab
to launch a user's default browser
. Look into replacing with click.launch()
that also supports opening files in there default applications.
Handle this error gracefully would a custom error message
File "C:\Users\<user>\.local\pipx\venvs\getdat\Lib\site-packages\getdat\main.py", line 48, in ebook
ebook.run()
File "C:\Users\<user>\.local\pipx\venvs\getdat\Lib\site-packages\getdat\utils.py", line 311, in run
self._dl_or_launch_page(*args, **kwargs)
File "C:\Users\<user>\.local\pipx\venvs\getdat\Lib\site-packages\getdat\utils.py", line 284, in _dl_or_launch_page
self._download(title, *args, **kwargs)
File "C:\Users\<user>\.local\pipx\venvs\getdat\Lib\site-packages\getdat\utils.py", line 242, in _download
self._to_filesystem(response)
File "C:\Users\<user>\.local\pipx\venvs\getdat\Lib\site-packages\getdat\utils.py", line 225, in _to_filesystem
with open(resource_path, "wb") as f:
Some titles are not appended with a file format leading to issues during downloading. Get the ext
when parsing the search results response and update self.ext
. In to_filesystem
check that the title has an ext appended. If not, add it.
[annas-archive.org](https://annas-archive.org/) - Currently Supporting
[annas-archive.gs](https://annas-archive.gs/)
[annas-archive.se](https://annas-archive.se/)
Give users the ability to specify an --instance
of anna-archive to use complete there search.
&lang=f{language_code}
Currently only echoing full matches. Give the user an option to see partial matches also.
ebook
flags--direct_download_only
should remove all download links that explicitly require continuation in the browser--non_interative
- Should skip user required input and download the book of the users shown formatScrape public instances from use invidious. Allow users to select the instance that they would like to launch in the browser.
Lines 7 to 9 in 128e1e8
It would great to have books automatically stored in Librum Server after download.
title_list = title_str.split(", ", 3)
^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'split'
```
Occurs when a user does not provide a valid search such as `getdat ebook dskafjdasf`.
Better formatting and examples for options
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.