Skip to main content

Calculate affinity between MyAnimeList users

Project description

forthebadge1 forthebadge2 forthebadge3

malaffinity

pypi travis codecov rtd

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

or

import malaffinity

affinity, shared = malaffinity.calculate_affinity("YOUR_USERNAME", "OTHER_USERNAME")

# ...

Documentation

Documentation at https://malaffinity.readthedocs.io

Cat Gif

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

malaffinity-2.5.2.tar.gz (7.6 kB view hashes)

Uploaded Source

Built Distribution

malaffinity-2.5.2-py2.py3-none-any.whl (10.5 kB view hashes)

Uploaded Python 2 Python 3

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