Giter Site home page Giter Site logo

Comments (8)

jQwotos avatar jQwotos commented on August 17, 2024

I'd recommend switching to the beta branch as it has more features.
I haven't fully implemented a handler for argsparse yet, but you can treat it as a module (by just navigating the folder, entering python3 console and doing importing it like a normal module).

python3
import anime9

(If you get an importerror, make sure that your currently in the 9anime-Scraper folder)
Here are the two important functions that you can use

There's also some other things on the wiki

I'll also eventually make a requirements file... But for now here are the required third-party modules

  • requests
  • bs4

from 9anime-scraper.

danielb2 avatar danielb2 commented on August 17, 2024

thank you much :)

from 9anime-scraper.

danielb2 avatar danielb2 commented on August 17, 2024

btw, I made some changes to another repo: https://github.com/danielb2/9anime-scrapper/tree/options

it's only in this branch until they merge it but I have parseoptions and everything nice. May be useful for you

from 9anime-scraper.

jQwotos avatar jQwotos commented on August 17, 2024

cool, i'm probably going to just re-use most of the cli code from KAMD.

I'm thinking of just making a handlers folder so that people can make their own custom handlers that just import the base anime9.

Thanks for the tip though. Feel free to contribute to this repo if you also want to.

from 9anime-scraper.

danielb2 avatar danielb2 commented on August 17, 2024

feel free to borrow my syntax to be able to download single episodes or episode ranges. that was one of my issues when using your code there. Also that I couldn't use jdownloader which will download the episodes in parallel ended up winning me over too for the other project

from 9anime-scraper.

danielb2 avatar danielb2 commented on August 17, 2024

If I submit a PR to use the syntax for the other scraper on commandline (using parseopts) will you merge it? What I like about what I done is that I can easily just download 10 episodes in batch each time for instance. Or single missed episodes

from 9anime-scraper.

jQwotos avatar jQwotos commented on August 17, 2024

Sure sounds good. I'd recommend putting your handler in the Handler's folder.
Another heads up, 9anime.to is now using a reqkey cookie that is generated based on a token cipher. I'm still working on deciphering their cipher code, for now you need to update the constants file with your reqkey.

Edit - fixed typo, changed settings to constants

from 9anime-scraper.

danielb2 avatar danielb2 commented on August 17, 2024

yeah, I saw that. I'm too lazy to do that sort of figuring out, that's why I'd rather fix your code to do what I want :)

from 9anime-scraper.

Related Issues (7)

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.