A simple library to help you fetch data from MyAnimeList.
Project description
malfetcher
A simple library to help you fetch data from MyAnimeList
Description
This library is aimed at people who might be interested in automatizing their anime library.
Getting Started
Dependencies
- Python(tested on the latest ver.)
- A MyAnimeList account
- A MyAnimeList developer app
Installing
- Clone this repo
git clone https://github.com/prochy-exe/malfetcher /path/to/desired/folder
- Install it using pip
pip install malfetcher
- Install it using pip locally
cd /path/to/desired/folder
pip install .
- If you want to make modifications to the library install it in the edit mode:
cd /path/to/desired/folder
pip install -e .
Using the library
- To import the library into your code use:
import malfetcher
- When importing this library for the first time, you will be taken through the setup process
Setting up the MyAnilist developer app
- When the setup process starts, you will be automatically taken to required pages. This process is really simple.
- When asked for the Client ID, you will be taken to the account developer page.
- If not logged in, log in first.
- Then create a new client
- Choose whatever name you fancy, and for the redirect URL use http://localhost:8888/auth
- After you save the client, copy the ID and paste it into the terminal
- After entering the ID you will be taken to an auth page, where you need to allow the app to access your account.
- Afterwards you will be taken to a redirect page that will automatically send the token to the library.
- After that the library is successfully set-up and ready for use.
Help
If you encounter any issues, feel free to open a new issue. If you have any new ideas or fixes, please open a pull request, they are more than welcome!
Version History
- 1.5.0
- 1.4.0
- 1.3.0
- 1.2.0
- 1.1.0
- fix typo
- allow some functions to not require user token
- use local ip address instead of localhost
- print list name when no anime found
- drop user list caching
- allow the mal_to_al_id function to be imported easily
- add function to update progress in users list
- regenerate token when expired
- add state to requests
- rotate useragents in hopes to avoid captcha
- fetch unreleased info all the time
- make sure we have a day in the dates
- Formatting changes
- 1.0.0
Acknowledgments
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
malfetcher-1.5.0.tar.gz
(25.4 kB
view details)
Built Distribution
File details
Details for the file malfetcher-1.5.0.tar.gz
.
File metadata
- Download URL: malfetcher-1.5.0.tar.gz
- Upload date:
- Size: 25.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e2beb0c27d05a007b7d9e075b1c00af181630cb11fa95d5b4e0f81551e3a6c1b |
|
MD5 | 7a82073de47f3ebe6670243a3e2ef5e0 |
|
BLAKE2b-256 | 11761e2a8fa60f37156e54a14e62791815f448face3fb38a731b2d37d336c31e |
File details
Details for the file malfetcher-1.5.0-py3-none-any.whl
.
File metadata
- Download URL: malfetcher-1.5.0-py3-none-any.whl
- Upload date:
- Size: 24.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 361d5939fd07997e1b4f265f5e64cddc865321ddd25cf982cd6a9fcc2e56dd74 |
|
MD5 | caa202933ddcf074d65990f2dd2acae0 |
|
BLAKE2b-256 | 110344a089bc779e7b6d2f373750bd838aebab9ccf83a5cb0410dc024a607d94 |