Skip to main content

Kei is an unofficial, Pure Python API for gogoanime2.org.

Project description

Kei

Kei is an unofficial, Pure Python API for gogoanime2.org.
It uses BeautifulSoup4 for scraping data from the website.


Installation

Kei is pip installable. PyPi

pip install KeiAPI

Usage

1) Simply import by
import Kei
2) Get search results for given query
Kei.search("fumetsu")

will return

  {
    "series1": {
        "series_title": "Fumetsu no Anata e",
        "series_url": "https://gogoanime2.org/anime/fumetsu-no-anata-e",
        "cover_url": "https://gogoanime2.org/images/225_318/fumetsu-no-anata-e.jpg",
        "episode_count": "15"
    },
    "series2": {
        "series_title": "Fumetsu no Anata e (Dub)",
        "series_url": "https://gogoanime2.org/anime/fumetsu-no-anata-e-dub",
        "cover_url": "https://gogoanime2.org/images/225_318/fumetsu-no-anata-e-dub.jpg",
        "episode_count": "9"
    }
}
3) Get newly updated episodes
Kei.get_new_updated(1)

will return the info of newly updated episode on 1st page in the format-

{
    "series1": {
        "series_title": "Beyblade Burst Dynamite Battle",
        "episode_url": "https://gogoanime2.org/watch/beyblade-burst-dynamite-battle/18",
        "episode_number": "18"
    },
    "series2": {
        "series_title": "Holo no Graffiti",
        "episode_url": "https://gogoanime2.org/watch/holo-no-graffiti/110",
        "episode_number": "110"
    }
}
4) Get list of ongoing series
Kei.get_ongoing()

will return info in the format-

{
    "series1": {
        "series_title": "Yu\u2606Gi\u2606Oh!: Sevens",
        "series_url": "https://gogoanime2.org/anime/yugioh-sevens"
    },
    "series2": {
        "series_title": "Yuuki Yuuna wa Yuusha de Aru Churutto!",
        "series_url": "https://gogoanime2.org/anime/yuuki-yuuna-wa-yuusha-de-aru-churutto"
    }
}
5)Get list of recently added series
Kei.get_recently_added()

will return in the format-

{
    "series1": {
        "series_title": "Yu\u2606Gi\u2606Oh!: Sevens",
        "series_url": "https://gogoanime2.org/anime/yugioh-sevens"
    },
    "series2": {
        "series_title": "Yuuki Yuuna wa Yuusha de Aru Churutto!",
        "series_url": "https://gogoanime2.org/anime/yuuki-yuuna-wa-yuusha-de-aru-churutto"
    }
}
6)Get download link for given episode_url
Kei.get_video("https://gogoanime2.org/watch/fumetsu-no-anata-e/15")

will return a link to .mp4 file for downloading.

7) Get working link for gogoanime
Kei.get_valid_link()

will return link of the first Bing result for the query "gogoanime"


Features

  • Get download link for video by passing episode_url
  • Get working link for gogoanime (scraps Bing results)
  • Get search results data in JSON format for:
    • Series title
    • Episode count of Series
    • Series URL
    • Cover Image URL
  • Get info(series_title, episode_url) about all newly updated series(pagewise) in JSON
  • Get info(series_title, series_url) about all ongoing series in JSON

Contributing

  • Fork it!
  • Create your feature branch: git checkout -b my-new-feature
  • Commit your changes: git commit -m 'Add some feature'
  • Push to the branch: git push origin my-new-feature
  • Submit a pull request

Licensed under MIT License.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

KeiAPI-1.0.1.tar.gz (4.2 kB view details)

Uploaded Source

File details

Details for the file KeiAPI-1.0.1.tar.gz.

File metadata

  • Download URL: KeiAPI-1.0.1.tar.gz
  • Upload date:
  • Size: 4.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.5

File hashes

Hashes for KeiAPI-1.0.1.tar.gz
Algorithm Hash digest
SHA256 af3d0458f03e780aae7b91bcf518b59d33535e9a26f7a9e211afe625fa8729d1
MD5 5189b6ce98805e9010e0f40443b63f68
BLAKE2b-256 3cae0ae3c53fdc49b6826a535e18fea0967e6f5810d2be4a2d76464e474a4c86

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page