Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Year information after title or names and prefetch links when downloading in batch #1208

Closed
devvratmiglani opened this issue Aug 23, 2023 · 11 comments
Labels
priority 4: wishlist Default for feature requests type: feature request feature request

Comments

@devvratmiglani
Copy link

devvratmiglani commented Aug 23, 2023

It's very hard for Non-Japanese like me to remember names like "Nanatsu no Taizai: Ensa no Edinburgh" and remember which part or chapter it is.
Please add year after title names, it will be great help to Identify what chapter to watch! Thanks in advance!

I mean something like this:
Screenshot 2023-08-23 235834

------------------------|------------------------|------------------------|------------------------|------------------------|--------------

Also another thing I noticed that fetching links takes longer when in downloading batch, so can we prefetch links of next episode when an episode is downloading and simultaneously for all, kind of like an optimization.

@devvratmiglani devvratmiglani added priority 4: wishlist Default for feature requests type: feature request feature request labels Aug 23, 2023
@devvratmiglani devvratmiglani changed the title Year information after title or names Year information after title or names and prefetch links when downloading in batch Aug 24, 2023
@port19x
Copy link
Collaborator

port19x commented Aug 24, 2023

I guess it would be much easier to remember what comes after the :, not sure if there is much we can do.
We can however definitely prefetch the next link during batch downloads

@devvratmiglani
Copy link
Author

I guess it would be much easier to remember what comes after the :, not sure if there is much we can do. We can however definitely prefetch the next link during batch downloads

Yes, you are right I just felt convenience using my last downloader when year is mentioned, but that doesn't work anymore.
Also that downloader saves all links to text file and then performs batch download using aria2c ; It was lightning fast.
I guess prefetch would do it, I mean fetching while downloading.

Link to my last downloader: https://github.com/niveK77pur/gogoanime
(It only fetches episode names; do not fetch links or say it is broken now)

@port19x
Copy link
Collaborator

port19x commented Aug 25, 2023

Thanks for referencing that downloader. That way we can inspect it's code

@devvratmiglani
Copy link
Author

devvratmiglani commented Aug 26, 2023

All the way fine, tbh its author recommended me ani-cli 😄

@CoolnsX
Copy link
Collaborator

CoolnsX commented Aug 27, 2023

Thanks for referencing that downloader. That way we can inspect it's code

It uses selenium (out of scope of our project, but a good starting point for anyone coming into web-scraping)

@devvratmiglani
Copy link
Author

Well then how do Ani-cli does that without selenium or any automation, cookie handler stuff. Any resources would be a great help.

I only know the way to do is reusing cookies.

@CoolnsX
Copy link
Collaborator

CoolnsX commented Aug 27, 2023

simple, using scraping disguising techniques to make the request looks like it's coming from browser like
-- User-agent
-- setting Cipher-suite (for bypassing most of the cloudflare bot protection, except the latest one,it runs JS to calculate something on browser side)
-- Referrer
-- TLS (some cloudflare enabled website also check this)

and many other techniques, like using cookies as you mentioned

@devvratmiglani
Copy link
Author

devvratmiglani commented Aug 27, 2023

I guess its time to sit on chair for long, Thanks for that.
If any learning resource ,websites where I can get more information, that would be a great help.
Sensei!

@justchokingaround
Copy link
Collaborator

the main source i recommending starting with is scraping-tutorial. i take no credit for this repo, i just made a fork of it with a few shellscript examples that i added:
https://github.com/justchokingaround/scraping-tutorial/tree/shellscript

the best resources for webscraping with shellscript imo is already existing code, from which you can get inspired, here are a few useful repos i recommend u take a look at. if u got any questions or need some help just ping, or write to us in the discord server (i'm always glad to help):

https://github.com/CoolnsX/repos_scripts/blob/master/ani-new
https://github.com/sh-dlp/sh-dlp/tree/main/extractors
https://github.com/justchokingaround/zoro-cli/blob/main/zoro.sh

@ninko76
Copy link

ninko76 commented Apr 14, 2024

It's very hard for Non-Japanese like me to remember names like "Nanatsu no Taizai: Ensa no Edinburgh" and remember which part or chapter it is. Please add year after title names, it will be great help to Identify what chapter to watch! Thanks in advance!

I mean something like this: Screenshot 2023-08-23 235834

------------------------|------------------------|------------------------|------------------------|------------------------|--------------

Also another thing I noticed that fetching links takes longer when in downloading batch, so can we prefetch links of next episode when an episode is downloading and simultaneously for all, kind of like an optimization.

What command do you use to download a batch for example?

@devvratmiglani
Copy link
Author

It's very hard for Non-Japanese like me to remember names like "Nanatsu no Taizai: Ensa no Edinburgh" and remember which part or chapter it is. Please add year after title names, it will be great help to Identify what chapter to watch! Thanks in advance!
I mean something like this: Screenshot 2023-08-23 235834
------------------------|------------------------|------------------------|------------------------|------------------------|--------------
Also another thing I noticed that fetching links takes longer when in downloading batch, so can we prefetch links of next episode when an episode is downloading and simultaneously for all, kind of like an optimization.

What command do you use to download a batch for example?

this screenshot was with different scr-aper not ani-cli
---> https://github.com/niveK77pur/gogoanime

@port19x port19x closed this as not planned Won't fix, can't repro, duplicate, stale May 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority 4: wishlist Default for feature requests type: feature request feature request
Projects
None yet
Development

No branches or pull requests

5 participants