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

Base Url #1

Open
hyuse202 opened this issue Jun 24, 2023 · 1 comment
Open

Base Url #1

hyuse202 opened this issue Jun 24, 2023 · 1 comment

Comments

@hyuse202
Copy link
Contributor

hyuse202 commented Jun 24, 2023

  • Nettruyen's domain changes frequently so .getListLatestUpdate not work.
  • Btw i wanna add some source like blogtruyen, truyenqq,... to this project but I 've never created a PR before. So feel free when I make it.
    Big love.
@zcrossoverz
Copy link
Owner

Hi bro 😄,
Thank you for your interest in my project and opening this issue.

Nettruyen's domain changes frequently so .getListLatestUpdate not work.

If the domain has changed and the default domain doesn't work, you can customize the baseUrl by creating an instance with params like this

const manga = new Manga().build(MangaType.NETTRUYEN, {
  baseUrl: "https://www.newdomain.com/",
});

If a website has the same structure as nettruyen, you can also use that way to scape this site. 😉

Btw i wanna add some source like blogtruyen, truyenqq,... to this project but I 've never created a PR before. So feel free when I make it.

If you wanna add some other manga source, feel free to do it, I'm very happy and grateful to anyone contribute to this project.
I have created an interface called AbstractMangaFactory that specifies the common methods and properties that every manga source should have. Please follow this interface when writing new manga class 😊

I look forward to seeing your PR and collaborating with you. Thank you for your support and love. 😊

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants