Skip to main content

A good starting point for getting some data from mubi.com. Since MUBI doesn’t provide a public API, you need to do all the things manually. mubi.py is created to help you with the login process.

Powered by awesome Requests.

Usage

To access the most interesting part of the mubi.com content you’ll need to be logged in. It’s time for mubi.py:

>>> from mubi import login, mubicom
>>> session, me = login('email', 'password', identify=True)

# Show your user id
>>> print(me)
'123456'

# Use the requests.Session object (now with cookies) as usual
>>> session.get(mubicom('/films'))
<Response [200]>

To be a good internet citizen provide some information about yourself:

>>> import requests
>>> from mubi import login

>>> s = requests.Session()
>>> s.headers.update({
...     # Add something useful
...     'User-Agent': 'Mr. Robot/1.0 (http://github.com/example/repo beep@example.com)'
>>> })

>>> mubi = login('email', 'password', session=s)

Install

$ pip install mubi

Download files

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

Source Distribution

mubi-0.2.0.tar.gz (2.6 kB view details)

Uploaded Source

File details

Details for the file mubi-0.2.0.tar.gz.

File metadata

  • Download URL: mubi-0.2.0.tar.gz
  • Upload date:
  • Size: 2.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for mubi-0.2.0.tar.gz
Algorithm Hash digest
SHA256 864dc5e4f9764af914dd9cba3ef1f5cc0dee55581730c8652364b2669f362fc6
MD5 ab973eb8e781ceba7e559391ec3bb8c5
BLAKE2b-256 91607bc59ded918d0b44da404b1cdd3076ffbd6f951457a0ff0c1e2990d0258e

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.2.0 This release

1 file

0.1.0

1 file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page