Code Monkey home page Code Monkey logo

anikimiapi's Introduction

Hey ๐Ÿ‘‹ What's up?

My name is Cosmic and I'm a software and GenAI Developer, from India.

About me

โœจ 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.

I code with

dotnetcore logo dot-net logo csharp logo windows8 logo visualstudio logo fsharp logo rust logo python logo arduino logo figma logo github logo intellij logo julia logo msdos logo nuget logo opencv logo postgresql logo vscode logo anaconda logo

My Stats

stats graph languages graph

anikimiapi's People

Contributors

cosmicpredator avatar ryan-k8 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

anikimiapi's Issues

Pip import error

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

Always getting 'InvalidAnimeIdError' error

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.

'NoneType' object has no attribute 'find'

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'

suggestion/enhancement : auth tokens should only be used for returning direct download links

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.

get_download_link not working.

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.

[Enhancement] [Suggestion] Getting the required cookies using simple javascript

[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()}\"`);}
}

Example:
image

[Feature] [TOKEN extraction method] #Add to README.md

description

it's kinda pain to extract the token using pc...
Its following methods which i know about token and cookies data extraction

Methods

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..

YOU CAN REFER STACKOVERFLOW for this.

Keep going on!!
I like your work ๐Ÿญ

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.