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 hashes)

Uploaded Source

Built Distribution

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

Uploaded 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