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
- 2.0.0
- 1.9.0
- 1.8.0
- update_entry: read token from config
- fix sorting of the list, along with the amount of anime
- rebrand request function to mal
- add a feature that allows specifying episodes from another season
- fix a bug that marks anime as planning while having an episode watched
- introduce a function that returns list of all seasons
- repeating support
- setup flow qol imporvements
- fix mal auth and add url tooltip
- 1.7.0
- 1.6.0
- 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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file malfetcher-2.0.0.tar.gz.
File metadata
- Download URL: malfetcher-2.0.0.tar.gz
- Upload date:
- Size: 28.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0e3493e9487a2037bba69fc982ddabc41e7b961ad2144055d9d033f496094ae3
|
|
| MD5 |
bc711708f925127b1bf773ba64bc7190
|
|
| BLAKE2b-256 |
9b92d56bb999fc5663a135dbebc894d2ad18f35b7219064922d0cb1ac3791349
|
Provenance
The following attestation bundles were made for malfetcher-2.0.0.tar.gz:
Publisher:
publish.yml on prochy-exe/malfetcher
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
malfetcher-2.0.0.tar.gz -
Subject digest:
0e3493e9487a2037bba69fc982ddabc41e7b961ad2144055d9d033f496094ae3 - Sigstore transparency entry: 210425206
- Sigstore integration time:
-
Permalink:
prochy-exe/malfetcher@9d9c104951da437f3b771851c450ac82d71d749b -
Branch / Tag:
refs/tags/v2.0.0 - Owner: https://github.com/prochy-exe
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@9d9c104951da437f3b771851c450ac82d71d749b -
Trigger Event:
push
-
Statement type:
File details
Details for the file malfetcher-2.0.0-py3-none-any.whl.
File metadata
- Download URL: malfetcher-2.0.0-py3-none-any.whl
- Upload date:
- Size: 26.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1535ff4b18872add363f0baeb840f94ba05070bb03fa13fd1d87c298222dcb88
|
|
| MD5 |
a323f2c6ca0453f81500a283e97b845d
|
|
| BLAKE2b-256 |
92096a255f0e7bfd9bd18e78ec90db746fd6222c8315cd882c0d1703b924d3a6
|
Provenance
The following attestation bundles were made for malfetcher-2.0.0-py3-none-any.whl:
Publisher:
publish.yml on prochy-exe/malfetcher
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
malfetcher-2.0.0-py3-none-any.whl -
Subject digest:
1535ff4b18872add363f0baeb840f94ba05070bb03fa13fd1d87c298222dcb88 - Sigstore transparency entry: 210425208
- Sigstore integration time:
-
Permalink:
prochy-exe/malfetcher@9d9c104951da437f3b771851c450ac82d71d749b -
Branch / Tag:
refs/tags/v2.0.0 - Owner: https://github.com/prochy-exe
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@9d9c104951da437f3b771851c450ac82d71d749b -
Trigger Event:
push
-
Statement type: