WebsiteScraper is a powerful tool that allows you to effortlessly download your favorite comics and manga from various websites. You can easily provide a JSON file containing the website links, and the scraper will do the rest. Using the advanced parsing capabilities of Angelsharp and Regex, the tool efficiently extracts the desired content from the website and saves it onto your device for offline reading. With WebsiteScraper, you can enjoy your favorite comics and manga anytime, anywhere, without any hassle.
$ dotnet add package Shard.WebsiteScraperWebsiteScraper is a powerful library that allows you to easily download comics and manga from various websites. With its intuitive interface and advanced parsing capabilities, you can quickly fetch and save your favorite content for offline reading. This readme provides an overview of how to use the WebsiteScraper library and includes some example code snippets to get you started.
To use WebsiteScraper in your project, you can install it via NuGet package manager or by manually adding the library to your project references.
using WebsiteScraper;
Website website = Website.LoadWebsite("Destination");
Make sure to replace "Destination" with the destination file of the website you want to scrape. An example for a website file is provided in the repository.
Comic[] newComics = website.LoadNewsAsync<Comic>();
Comic[] recommendedComics = website.LoadExtraAsync<Comic>("Recommended");
These methods fetch all the links for new and recommended comics respectively. The Comic class should be defined based on your specific website structure.
comic.UpdateAsync();
This method retrieves and updates the comic information for the previously loaded links.
comic.Chapter[0].DownloadAsync("Destination");
Replace "Destination" with the desired location to save the downloaded chapter.
An example for a website is provided in the repository. You can refer to this example for a better understanding of how to use the WebsiteScraper library in your own projects.
Please note that the example provided may need to be modified based on the structure and requirements of the specific website you are targeting.
Easily add your own websites with the Website Creator WPF application.
Contributions to the WebsiteScraper library are welcome. If you encounter any bugs, have feature requests, or want to improve the library in any way, please feel free to open an issue or submit a pull request.
The WebsiteScraper library is released under the MIT License. You are free to use, modify, and distribute the library in any way you see fit.