https://github.com/ii64/image2anime
Gimme your image, I'll search it for ya ;)
https://github.com/ii64/image2anime
anime imagesearch python-3-6 python3 python36
Last synced: 10 months ago
JSON representation
Gimme your image, I'll search it for ya ;)
- Host: GitHub
- URL: https://github.com/ii64/image2anime
- Owner: ii64
- License: mit
- Created: 2017-10-19T15:36:55.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-12-09T07:40:48.000Z (about 7 years ago)
- Last Synced: 2025-03-24T16:56:19.178Z (11 months ago)
- Topics: anime, imagesearch, python-3-6, python3, python36
- Language: Python
- Homepage:
- Size: 1.15 MB
- Stars: 6
- Watchers: 4
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Authors: AUTHORS
Awesome Lists containing this project
README
Image2Anime
----
[](https://github.com/anysz/Image2Anime) [](https://opensource.org/licenses/MIT) [](https://www.python.org/download/releases/3.6/)
Refrence
----
- Based : [Soruly's Repo](https://github.com/soruly/trace.moe)
- WEB : [The web](https://trace.moe/)
***The Endpoint isn't mine, I just make the API***
Usage
----
**First of all, you need to install the library**
$ python setup.py install
**First use**
>>> import Image2Anime
**To check your quota**
>>> stat = Image2Anime.Me()
>>> # If you have the token
>>> stat = Image2Anime.Me('theTokenHere')
**To start search the anime by local path**
>>> res = Image2Anime.Search(r'/path/to/source')
**To start search the anime by io text/buffer**
>>> with open(r'/path/to/source', 'rb') as fp:
...... res = Image2Anime.Search(fp)
**To start search the anime by raw image binary**
>>> res = Image2Anime.Search(image_raw=b"the image binary here")
**To start search the anime by url**
>>> res = Image2Anime.Search(url="http://the_image_url_here")
**To get the results**
>>> print(res); print(res.result)
**To get match scenes and get other information**
>>> first_match = res.result.scenes[0]; other_information = first_match.getInfo(); duration = first_match.getDuration();
>>> # Its example how to get result data - the getInfo and getDuration stored on memory so you only need to do once
>>> print(first_match)
**QnA**
Q : Whats the first step?
A : python setup.py install
Q : Where's the example?
A : At tests folder
Q : Lib imported not found?
A : pip install PACKAGENAME
Q : Your issue not solved?
A : Create new issue with what your problem and what you want to achieve :D
Screenshot
----------

Special Thanks
----
[Soruly](https://github.com/soruly)
Author
----
[Anysz](https://instagram.com/nugra.z) / [@Anysz](https://github.com/anysz)