alanjoshua / gogo_scraper

A simple python goganime scrapper
MIT License
4 stars 2 forks source link

gogo_scrapper

A simple python goganime scraper

Installation


install gogo_scraper using pip install gogo_scraper


Usage



import gogo_scraper as gogo # import module


Gets list of Gogoanime search results for the query "naruto"

search = gogo.search("naruto")


Get link to naruto episode 10

Here, "naruto" is the exact anime title/link in Gogoanime. Other anime might have complicated titles, so first use gogo.search() to get exact title

link = gogo.getEpisode("naruto", 10)




Get latest episode from naruto

Returns a dictionary {ep_num: 220, link: ...}

latest_episode = gogo.getLatestEpisode("naruto")




All these functions also take an optional base_url parameter, which could be used to scrap from a different Gogoanime server.

Users could also directly change gogo.BASE_URL to globally change the server being used