Skip to main content

A simple library to help you fetch data from AniList.

Project description

alfetcher

A simple library to help you fetch data from AniList

Description

Welcome to my first python project! This library is aimed at people who might be interested in automatizing their anime library.

Getting Started

Dependencies

  • Python(tested on the latest ver.)
  • An AniList account
  • An AniList developer app
  • Javascript enabled during the set-up process (for sending the access token back to Python)

Installing

  • Clone this repo
git clone https://github.com/ProchyGaming/alfetcher /path/to/desired/folder
  • Install it using pip
pip install alfetcher
  • 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 alhelper
  • When importing this library for the first time, you will be taken through the setup process

Setting up the AniList 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 is momentarily hosted using gevent. (If you have any worries, please see the token_getter.html source code.)
  • 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

Acknowledgments

Huge thanks to AniList team for their great page and database:

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

alfetcher-1.0.0a0.tar.gz (22.5 kB view details)

Uploaded Source

Built Distribution

alfetcher-1.0.0a0-py3-none-any.whl (22.1 kB view details)

Uploaded Python 3

File details

Details for the file alfetcher-1.0.0a0.tar.gz.

File metadata

  • Download URL: alfetcher-1.0.0a0.tar.gz
  • Upload date:
  • Size: 22.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.0.0 CPython/3.12.3

File hashes

Hashes for alfetcher-1.0.0a0.tar.gz
Algorithm Hash digest
SHA256 5dc0e4a89bae6b53aeed6c342d4035ef9896cd5624908ed155e894a3b02f9406
MD5 839f8225c52500171d064b839873a4b1
BLAKE2b-256 09f5ae425425d6818dfc8c35bd3496667a74b8eb02ab893a41bbb0b00a4e3605

See more details on using hashes here.

File details

Details for the file alfetcher-1.0.0a0-py3-none-any.whl.

File metadata

  • Download URL: alfetcher-1.0.0a0-py3-none-any.whl
  • Upload date:
  • Size: 22.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.0.0 CPython/3.12.3

File hashes

Hashes for alfetcher-1.0.0a0-py3-none-any.whl
Algorithm Hash digest
SHA256 ce22f4e38232dcffa4b41e0db9db2f7dc9cb7870d45787d1090f7bc7539be983
MD5 e5d8accbaccc7397d831d7aa921683a0
BLAKE2b-256 11ac9a1dfc70864324450e6a9315c62ce9db4f66ada220f0fc45d1e2dd6a9f9d

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page