nekos-life / nekos.py Goto Github PK
View Code? Open in Web Editor NEWA Python module that uses Nekos API
License: GNU General Public License v3.0
A Python module that uses Nekos API
License: GNU General Public License v3.0
Almost all endpoints are giving me this error except spank
Traceback (most recent call last):
File "/home/ubuntu/.local/lib/python3.9/site-packages/discord/ext/commands/core.py", line 200, in wrapped
ret = await coro(*args, **kwargs)
File "/home/ubuntu/LunarDev/AGB/Cogs/nsfw.py", line 401, in classic
embed.set_image(url=nekos.img("classic"))
File "/home/ubuntu/.local/lib/python3.9/site-packages/nekos/nekos.py", line 43, in img
return r["url"]
KeyError: 'url'
is the function cat()
is really necessary while it's already callable via img("meow")
?
first time doing this
Yui FunamiBOTToday at 21:46
Traceback (most recent call last):
File "/app/cogs/developer.py", line 78, in _eval
ret = await func()
File "", line 2, in func
File "/app/.heroku/python/lib/python3.6/site-packages/nekos/init.py", line 4, in
from . import http
File "/app/.heroku/python/lib/python3.6/site-packages/nekos/http.py", line 1, in
import requests
ModuleNotFoundError: No module named 'requests'
I've been using this library for a long time, I really like it, but recently it stopped working at Replit :(
I don't know if you can do anything to fix this or it's the page's problem, thanks anyway!
The command pip install -U https://github.com/Nekos-life/nekos.py
is not working, tried it on linux and windows (python3.6). This error comes up:
Downloading https://github.com/Nekos-life/nekos.py
\ 61kB 364kB/s
Cannot unpack file /tmp/pip-unpack-w816_6mo/nekos.py (downloaded from /tmp/pip-req-build-w9snidmt, content-type: text/html; charset=utf-8); cannot detect archive format
Cannot determine archive format of /tmp/pip-req-build-w9snidmt
If you change the url to https://github.com/Nekos-life/nekos.py/archive/master.zip
the command works
importing the thing is broken
Did you happen to abandon nekos.life or are you having hosting issues?
Describe the bug
When using the neko.py API to retrieve GIFs, some of the returned links have their file extensions in uppercase (.GIF). Discord, however, treats these links as static images instead of animated GIFs.
Expected behavior
All GIF links should have their file extensions in lowercase (.gif) to ensure consistent handling across all platforms, including Discord.
Steps to Reproduce
Possible Solution
Ensure all GIF links returned by the neko.py API have their file extensions in lowercase (.gif). This could involve modifying the process which provides these links to change the case of the file extension to lowercase before returning it.
Additional context
The behavior is inconsistent. Not all GIF links have their extensions in uppercase, but for the ones that do, they are not properly rendered as animated GIFs in Discord.
Like I want to the img('spank') function to return sfw gifs if there are any?
It is easy for users to install as pip install nekos
, instead of doing present installation. Please consider this issue
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.