The Unofficial Milanote API in Python.
Project description
Unofficial Milanote API for Python
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
- Login your Milanote account in your browser and go to home page.
- Open the developer tools (F12) and go to the network tab.
- Filter the results by
Fetch/XHRand reload the page. - You should see a request to
me. Right click on it and clickCopy -> Copy as cURL (bash). - Go to curlconverter.com and paste the copied text.
- Get the headers and cookies from the generated code.
- 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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0ebcaa18fc9f3160acd70a284e792dacc48b57ab6ce74730a1087f0fd83c751b
|
|
| MD5 |
2b7b1223d0bfa79e280aa3d2c3a81ce3
|
|
| BLAKE2b-256 |
5f01e8e39dcb6b437c98fc2923cbcc7b46cf6d45786762d98251acf7052fc51f
|
File details
Details for the file milanote_unofficial_api-1.0.0-py3-none-any.whl.
File metadata
- Download URL: milanote_unofficial_api-1.0.0-py3-none-any.whl
- Upload date:
- Size: 15.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cd48625b6be13fc2f1ddaf4fb7fc0fbad600962075bfe2a672030b6cd3b80130
|
|
| MD5 |
4a65b410da68536651d318e6e8871773
|
|
| BLAKE2b-256 |
f97042c47c03298284dbe676750f0a652151f07ee476908cd88db70dd6f793b6
|