GithubHelp home page GithubHelp logo

audiosutras / getdat Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 0.0 5.27 MB

A command line utility for getting resources available online

Home Page: https://getdat.chrisdixononcode.dev

License: MIT License

Python 16.62% HTML 83.38%
annas-archive cli libgen movie-web totalsportk

getdat's People

Contributors

audiosutras avatar

Stargazers

 avatar  avatar

Watchers

 avatar

getdat's Issues

Add Content filter support

&content=f"{value}"
Key: Value pairs

  • Book (non-fiction): book_nonfiction
  • Book (fiction): book_fiction
  • Book (unknown): book_unknown
  • Journal article: journal_article
  • Comic book: book_comic
  • Magazine: magazine
  • Standards document: standards_document

Support Sorting

&sort=:value

Possible values:
Most relevant - (default) - ''
Newest - newest
Oldest - oldest
Smallest - smallest
Largest - largest

Host instance of Annas Archive

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.

[FILENOTFOUNDERROR] - Handle Error in `_to_filesystem`

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:

'NoneType' object has no attribute 'split'

    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`.

Check Format for Direct Download

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.