A simple AI (span-marker) powered fandom scraper
Project description
Fandom Scraper
A simple AI (span marker) powered fandom scraper.
[!NOTE]
This package is a part of the Cirilla project
[!IMPORTANT]
In order to use the package an nvidia gpu is required.
Installation
# (recommended)
uv add fandom-scraper
# or
pip install fandom-scraper
Usage
The usage is very simple, the function requires path with so-called seeds to start scraping e.g. examples/witcher_json/witcher_1.json
[
"Geralt of Rivia", "Triss Merigold", "Vesemir", "Leo", "Lambert",
"Eskel", "Alvin", "Shani", "Zoltan Chivay", "Dandelion (Jaskier)",
"King Foltest", "Adda the White",
"Jacques de Aldersberg", "Azar Javed", "Professor (leader of Salamandra)",
...
]
and later uses sugesions provided by an Named Entity Recognition (NER) model. The script saves the scraped pages and instructions into respective folders.
from fandom_scraper import scrape_fandom
in_path = Path("./examples/witcher_json")
out_path = Path("./examples/async_fandom")
instruct_path = Path("./examples/async_fandom_instruct")
scrape_fandom(in_path, out_path, instruct_path)
See examples/async_fandom/ and examples/async_fandom_instruct/ for more examples.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file fandom_scraper-0.1.32.tar.gz.
File metadata
- Download URL: fandom_scraper-0.1.32.tar.gz
- Upload date:
- Size: 4.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.8.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
89e292b4a05add983fd3abd9346d11be4b9e328b5fda504e009ae272fba93231
|
|
| MD5 |
95280bbad16c20605df3e621e444dc41
|
|
| BLAKE2b-256 |
c92b9854e60f081332cb60f7a7d88eedbe64737a2b238bff9106929a8626b66d
|
File details
Details for the file fandom_scraper-0.1.32-py3-none-any.whl.
File metadata
- Download URL: fandom_scraper-0.1.32-py3-none-any.whl
- Upload date:
- Size: 5.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.8.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6c3261b33b762ab20f34f77d93406829d8b62e2f6cb60482c7ebfafdfcc55151
|
|
| MD5 |
6c7b9a0462ec5dcf64b814e29d3f7551
|
|
| BLAKE2b-256 |
8558e82f3cf8d36ac304b1f778ba2e9f7c5056c3dd1df252f4144a63af90ac27
|