Skip to main content

The Unofficial Milanote API in Python.

Project description

Unofficial Milanote API for Python

GitHub PyPI - Python Version


This is an unofficial api for Milanote. It can be used to automate planned tasks on Milanote.
It is not affiliated with Milanote in any way.


Disclaimer:

Please do not use this to spam or do anything illegal.
I am not responsible for any misuse of this library.

Table of Contents


Documentation


Documentation can be found here.

Installation


pip install milanote-unofficial-api

Quickstart


How to get headers and cookies

  1. Login your Milanote account in your browser and go to home page.
  2. Open the developer tools (F12) and go to the network tab.
  3. Filter the results by Fetch/XHR and reload the page.
  4. You should see a request to me. Right click on it and click Copy -> Copy as cURL (bash).
  5. Go to curlconverter.com and paste the copied text.
  6. Get the headers and cookies from the generated code.
  7. Now you can use the headers and cookies in the example below.

Example usage


from MilanoteUnofficialApi import MilanoteApi

my_headers = {...}
my_cookies = {...}

api = MilanoteApi(headers=my_headers, cookies=my_cookies)

# Get the user's home board.
home_board = api.get_home_board()

# Get the board by id.
my_board = api.get_board_by_id("1Pwm1W1wCvBF4C")

# Get the sub elements of the board.
for board in my_board.elements["BOARD"]:
    api.get_board_elements(board)

if(my_board.elements["TASK"]):
    for task in my_board.elements["TASK"]:
        print(task.text_content,
              "completed" if task.is_complete else "not completed")

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

milanote-unofficial-api-1.0.0.tar.gz (8.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

milanote_unofficial_api-1.0.0-py3-none-any.whl (15.2 kB view details)

Uploaded Python 3

File details

Details for the file milanote-unofficial-api-1.0.0.tar.gz.

File metadata

  • Download URL: milanote-unofficial-api-1.0.0.tar.gz
  • Upload date:
  • Size: 8.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.7

File hashes

Hashes for milanote-unofficial-api-1.0.0.tar.gz
Algorithm Hash digest
SHA256 0ebcaa18fc9f3160acd70a284e792dacc48b57ab6ce74730a1087f0fd83c751b
MD5 2b7b1223d0bfa79e280aa3d2c3a81ce3
BLAKE2b-256 5f01e8e39dcb6b437c98fc2923cbcc7b46cf6d45786762d98251acf7052fc51f

See more details on using hashes here.

File details

Details for the file milanote_unofficial_api-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for milanote_unofficial_api-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 cd48625b6be13fc2f1ddaf4fb7fc0fbad600962075bfe2a672030b6cd3b80130
MD5 4a65b410da68536651d318e6e8871773
BLAKE2b-256 f97042c47c03298284dbe676750f0a652151f07ee476908cd88db70dd6f793b6

See more details on using hashes here.

Supported by

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