My name is Cosmic and I'm a software and GenAI Developer, from India.
โจ Creating bugs since 2018.
๐ I'm currently learning Rust.
๐ฏ Goals: Nothing for now.
๐ฒ Fun fact: I'm working on AniMoe, an unofficial anilist client for windows.
A Simple, LightWeight, Statically-Typed Python3 API wrapper for GogoAnime.
Home Page: https://pypi.org/project/anikimiapi/
License: GNU General Public License v3.0
Importing module failed and given the error :
No module named anikimiapi
Try to publish an update to pypi
Or
have a __init__.py?
Check it and try to correct it
To make import walk through your directories every directory must have a __init__.py
file
as mentioned in #11 , this was simply because the host website has been updated and gives 403 error code if user-agent is not set in request headers. i am making a PR to fix this.
Trying to get a link to any anime, including using the example code, results in an InvalidAnimeIdError. My code is as follows:
results = anikimi.search_anime(query=search)
for i in results:
animeid = i.animeid
anime_link = anikimi.get_episode_link_advanced(animeid=animeid, episode_num=1)
await ctx.send(anime_link.link_720p)
await ctx.send(anime_link.link_1080p)
Error is as follows:
Command raised an exception: InvalidAnimeIdError: Invalid animeid or episode_num given
This API looks really easy to use, would love to be able to get it working.
There seems to be an error in the API
Traceback (most recent call last): File "/Users/user/Library/Python/3.9/lib/python/site-packages/anikimiapi/anikimi.py", line 218, in get_episode_link_advanced source_url = lnk.find("li").a AttributeError: 'NoneType' object has no attribute 'find'
the download links except link_hdp,link1080p,link_720p,link_480p,link360p are not direct (i.e, just iframe/embed).
those links can be just scraped without requiring auth tokens.
as per my suggestion , only method related to returning these direct download links should require those auth tokens. this will make the library more accessible like the previous version since all other info can be acquired wihout instantiating the class with auth tokens.
@BaraniARR , this will obviously require changing a bunch of things like creating 2 different download methods and media links objects but would be worth it imo.
the get_download_link option is not working.
everytime when you try to get the download link, it returns the gogo-cdn.com link that shows the "403: Forbidden" error upon entering.
this error could be on my side, but please see if you can do anything with it.
i am using the newest version.
[Just a small friendly enhancement for getting the prerequisites :)]
After logging in/signing up in the gogoanime's website, the below code can be pasted into the console tab of the developer tools to get the required cookies directly in the hand without needing to install any extension. This can be added in the readme as an alternative method to get cookies. I am a python dev though, It's just a simple thing so I thought it would be better to create an issue for this rather than forking and generating a PR.
const value = `; ${document.cookie}`;
const cookies = ['gogoanime', 'auth']
for (let cookie in cookies){
const parts = value.split(`; ${cookies[cookie]}=`);
if (parts.length === 2){console.log(`\"${cookies[cookie]}\": \"${parts.pop().split(';').shift()}\"`);}
}
it's kinda pain to extract the token using pc...
Its following methods which i know about token and cookies data extraction
1. Method - using android debug mode
Its kinda pain but you can see it how-do-i-extract-and-view-cookies-from-android-chrome
2. Method - using third party android browser
Its easy and convenient even noob in coding can also do it. App in Play store
3. Method - using eruda
Dev consule for all browsers.
Its easy You can find repo Here
Just copy code โ
javascript:(function () { var script = document.createElement('script'); script.src="//cdn.jsdelivr.net/npm/eruda"; document.body.appendChild(script); script.onload = function () { eruda.init() } })();
Bookmark it and name it as Inspect element
Then you can use it in any browser..
Keep going on!!
I like your work ๐ญ
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.