A python wrapper for gdriveplayer.co API
Project description
GDrivePlayerAPI
A python wrapper for gdriveplayer.co API
Instructions
pip install gdriveplayer
Usage
The wrapper consists of 4 main classes.
GAnimeGMovieGDramaGSeries
Each of those classes contain very similar methods.
GAnime
Methods
search(title: str | None = '', limit: int | str | None = 10, page: int | str | None = 1) -> List[Anime]
Search an Anime. Returns a list of Anime Objects.
The Anime Object consists of several attributes such as
idtitlepostergenresummarystatustypetotal_episodesubplayer_url
Example
from GDrivePlayer import GAnime
s = GAnime().search(title='Pokemon', limit=3)
print(s)
Output
[<GDrivePlayer.anime.Anime object at 0x7f89b8d63370>, <GDrivePlayer.anime.Anime object at 0x7f89b8d633a0>, <GDrivePlayer.anime.Anime object at 0x7f89b8d63160>]
You can see the attributes of individual objects by doing
from GDrivePlayer import GAnime
s = GAnime().search(title='Bocchi the Rock')
print(s[0].title)
print(s[0].genre)
print(s[0].id)
print(s[0].status)
print(s[0].summary)
print(s[0].total_episode)
Output
Bocchi the Rock!
CGDCT, Comedy, Music, Slice of Life
290813
Ongoing
Hitori Gotou is a high school girl whos starting to learn to play the guitar because she dreams of being in a band, but shes so shy that she hasnt made a single friend. However, her dream might come true after she meets Nijika Ijichi, a girl who plays drums and is looking for a new guitarist for her band.
11
LatestAnimes(limit: str | int | None = 10, page: str | int | None = 1, order: str | None = "last_updated", sort: str | None = "DESC") -> List[Anime]
Returns a list of LatestAnime objects. The LatestAnime object is very similar to Anime object. The only difference is that the former doesn't contain summary attribute. This is due to the original API's structure.
animeDetail(id: str | int) -> Anime
Returns Anime Object of the id that is passed to the method.
Example
from GDrivePlayer import GAnime
s = GAnime().animeDetail(id=290813)
print(s)
print(s.title)
print(s.summary)
Output
<GDrivePlayer.anime.Anime object at 0x7f7e68282290>
Bocchi the Rock!
Hitori Gotou is a high school girl whos starting to learn to play the guitar because she dreams of being in a band, but shes so shy that she hasnt made a single friend. However, her dream might come true after she meets Nijika Ijichi, a girl who plays drums and is looking for a new guitarist for her band.
The classes such as GDrama, GMovie and GSeries also contain similar methods and similar Objects like Anime and LatestAnime.
Disclaimer
The developer of this wrapper is in no way responsible for how the user utilises, modifies and/or accesses this wrapper.
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 gdriveplayer-0.2.7.tar.gz.
File metadata
- Download URL: gdriveplayer-0.2.7.tar.gz
- Upload date:
- Size: 17.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.3.1 CPython/3.10.7 Linux/5.19.0-26-generic
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2bd8e522c55fc78f25d02358f1f18457bd05fdab0d81ab2daad53e3dcd67929d
|
|
| MD5 |
396cfae5ee8afef5db241888c7a83a9d
|
|
| BLAKE2b-256 |
b95627015571831532098812b35bae1d33dcb12e7de3878f5117a34710cf1df4
|
File details
Details for the file gdriveplayer-0.2.7-py3-none-any.whl.
File metadata
- Download URL: gdriveplayer-0.2.7-py3-none-any.whl
- Upload date:
- Size: 19.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.3.1 CPython/3.10.7 Linux/5.19.0-26-generic
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
945c1d8d7bdbfd5fa5809b7a5b1738b6ed7b32af081934b6714fb6ec80d58c1c
|
|
| MD5 |
c15b3930db8eb2f7508f280febe19725
|
|
| BLAKE2b-256 |
44db3faf0b7b13df3d5c93e0216f8dfc1539b70ef00c58afbcdc300542f25700
|