
Security News
The Hidden Blast Radius of the Axios Compromise
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.
python3-mal
Advanced tools
| Build Status | |
|---|---|
| Travis |
Provides programmatic access to MyAnimeList data. This is a fork of python-mal. It uses lxml instead of beautifulsoup, and it's working with python 3. There are automatic travis and teamcity builds on every last sunday of the month to ensure that the package is working fine with the current version of MAL.
After cloning the repository, navigate to the directory and run python setup.py install.
The myanimelist.session.Session class handles requests to MAL, so you'll want to create one first:
from myanimelist.session import Session
s = Session()
Then if you want to fetch an anime, say, Cowboy Bebop:
bebop = s.anime(1)
print bebop
Objects in python-mal are lazy-loading: they won't go out and fetch MAL info until you first-request it. So here, if you want to retrieve, say, the things related to Cowboy Bebop:
for how_related,items in bebop.related.iteritems():
print how_related
print "============="
for item in items:
print item
print ""
You'll note that there's a pause while Cowboy Bebop's information is fetched from MAL.
To find out more about what python-mal is capable of, visit the docs here.
Testing requires nose. To run the tests that come with python-mal:
credentials.txt and put your MAL username and password in it, separated by a comma, or set environment variables named MAL_USERNAME and MAL_PASSWORD with the appropriate values.nosetests.Make sure you don't spam the tests too quickly! One of the tests involves POSTing invalid credentials to MAL, so you're likely to be IP-banned if you do this too much in too short a span of time.
0.2.7 - Adapted MAL changes: characters and staff on datasheets have absolute urls. Staff table has been changed to multiple table elements.
0.2.6 - added broadcast time parsing for currently aired anime shows and added some minor fixes.
0.2.5 - added promotion video parsing on anime datasheets
0.2.4 - Adapted to the new MAL ssl enforcement
0.2.3.1 - upgraded to requests 2.11
0.2.3.0 - performance improvements in xpath queries.
0.2.2 - adapted to new SEO url rule changes and DOM changes on MAL.
0.2.1 - replaced beautifulsoup with lxml.
FAQs
Provides programmatic access to MyAnimeList resources.
We found that python3-mal demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.

Research
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.

Research
Malicious versions of the Telnyx Python SDK on PyPI delivered credential-stealing malware via a multi-stage supply chain attack.