shinden.py

bs4 based web scrapping api for shinden.pl
Required libraries:
- BeautifulSoup4
- requests
- pytest (for testing)
Usage
Installation
Using pip:
pip install shinden
Result
Results are returned using Result object with following attributes:
- title: the title of the series,
- tags: list of tags,
- ratings: dict of specific ratings,
- type: type of series,
- episodes: number of episodes,
- status: status of series (eg. ongoing, finished)
- top_score: overall score
- url: url to the shinden.pl page of the series
- cover_url: url to the cover image
Example
Importing with import alias
import shinden as sd
Generating a list of Result objects based on first page of shinden search engine
anime_list = sd.search_titles('alchemist')
# [a list of Result objects]
Getting the title of the first result
anime_list[0].title
# "Fullmetal Alchemist"
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
shinden-0.4.1.tar.gz
(7.9 kB
view details)
File details
Details for the file shinden-0.4.1.tar.gz.
File metadata
- Download URL: shinden-0.4.1.tar.gz
- Upload date:
- Size: 7.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.42.0 CPython/3.7.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a2fb66721c4e1a4e01adfc3a8a09cf534ec28161c773b5a3ee5acbfe7384e2ab
|
|
| MD5 |
cfeee7e08fa5d91ba7b86a86a32c2a37
|
|
| BLAKE2b-256 |
a16d6770277fe0fb333ba141aecc9f9e5f4d07f49b2b4aa4799e3a497c9c9fe0
|