Shard.WebsiteScraper
0.1.1
See the version list below for details.
dotnet add package Shard.WebsiteScraper --version 0.1.1
NuGet\Install-Package Shard.WebsiteScraper -Version 0.1.1
<PackageReference Include="Shard.WebsiteScraper" Version="0.1.1" />
paket add Shard.WebsiteScraper --version 0.1.1
#r "nuget: Shard.WebsiteScraper, 0.1.1"
// Install Shard.WebsiteScraper as a Cake Addin #addin nuget:?package=Shard.WebsiteScraper&version=0.1.1 // Install Shard.WebsiteScraper as a Cake Tool #tool nuget:?package=Shard.WebsiteScraper&version=0.1.1
WebsiteScraper
WebsiteScraper 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.
Installation
To use WebsiteScraper in your project, you can install it via NuGet package manager or by manually adding the library to your project references.
Usage
- Import the WebsiteScraper library in your code:
using WebsiteScraper;
- Create a Website object:
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.
- Download all links for new and recommended comics:
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.
- Get comic information:
comic.UpdateAsync();
This method retrieves and updates the comic information for the previously loaded links.
- Download the first chapter of a comic:
comic.Chapter[0].DownloadAsync("Destination");
Replace "Destination" with the desired location to save the downloaded chapter.
Example
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.
Contributing
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.
License
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.
Free Code and Free to Use
Have fun!
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net7.0 is compatible. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
-
net7.0
- AngleSharp (>= 1.0.7)
- Shard.DownloadAssistant (>= 0.1.1)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.