Calculate affinity between MyAnimeList users
Project description
malaffinity
Calculate affinity between MyAnimeList users
What is this?
Calculate the affinity (Pearson’s Correlation * 100) between a “base” user and another user. Refer to the docs for more info.
Install
pip install malaffinity
Dependencies
BeautifulSoup4
lxml
Requests
Examples
from malaffinity import MALAffinity
ma = MALAffinity("YOUR_USERNAME")
affinity, shared = ma.calculate_affinity("OTHER_USERNAME")
print(affinity)
# 79.00545465639877
print(shared)
# 82
import malaffinity
affinity, shared = malaffinity.calculate_affinity("YOUR_USERNAME", "OTHER_USERNAME")
# ...
Documentation
Documentation at https://malaffinity.readthedocs.io
Legal Stuff
Licensed under MIT. See LICENSE for more info.
Cat Gif
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
malaffinity-2.2.0.tar.gz
(6.9 kB
view hashes)
Built Distribution
Close
Hashes for malaffinity-2.2.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 69cadb95e5ab71b685f2204678ccbca6a8380c3084a5f7220c8eaa6e29de6400 |
|
MD5 | e2b6b4f5350f43df8b83e764b618ba02 |
|
BLAKE2b-256 | 6cdf672defe6bfdacaf1ad62440223308d3684b2d230cfb2c2ecc2f059db0878 |