Skip to main content

GDrivePlayerAPI

A python wrapper for gdriveplayer.co API

Instructions

pip install gdriveplayer

Usage

The wrapper consists of 4 main classes.

  • GAnime
  • GMovie
  • GDrama
  • GSeries

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

  • id
  • title
  • poster
  • genre
  • summary
  • status
  • type
  • total_episode
  • sub
  • player_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.

Metadata

Release files for gdriveplayer 0.2.7

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for gdriveplayer 0.2.7
File Size Uploaded
gdriveplayer-0.2.7.tar.gz 17.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for gdriveplayer 0.2.7
File Interpreter ABI Platform
gdriveplayer-0.2.7-py3-none-any.whl Python 3 none any Details

Total release size: 37.2 kB

Release files / gdriveplayer-0.2.7.tar.gz

Download URL gdriveplayer-0.2.7.tar.gz
Size 17.3 kB
Tags Source
SHA-256 checksum
How to use checksums
2bd8e522c55fc78f25d02358f1f18457bd05fdab0d81ab2daad53e3dcd67929d
BLAKE2b-256 checksum
How to use checksums
b95627015571831532098812b35bae1d33dcb12e7de3878f5117a34710cf1df4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.3.1 CPython/3.10.7 Linux/5.19.0-26-generic

Release files / gdriveplayer-0.2.7-py3-none-any.whl

Download URL gdriveplayer-0.2.7-py3-none-any.whl
Size 19.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
945c1d8d7bdbfd5fa5809b7a5b1738b6ed7b32af081934b6714fb6ec80d58c1c
BLAKE2b-256 checksum
How to use checksums
44db3faf0b7b13df3d5c93e0216f8dfc1539b70ef00c58afbcdc300542f25700
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.3.1 CPython/3.10.7 Linux/5.19.0-26-generic

Release history Release notifications | RSS feed

This release

0.2.7 This release

2 release files

0.2.6

2 release files

0.2.5

2 release files

0.2.4

2 release files

0.2.3

2 release files

0.2.2

2 release files

0.2.1

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page