The unofficial CLI reader of the Cosense. This project uses Cosense API.
pip install cosenseIf you install the CLI tool created by Python for the first time, this program may not be operational. Please execute the below on your PowerShell before executing this program.
$env:PATH += ";" + (Get-Item (python -m site --user-site)).parent.fullname + "\Scripts"(Reference: https://zenn.dev/kumazo/articles/35215498b86939)
cosense search help-jpimport cosense
client = cosense.Client()
project = client.get("/help-jp/")- Access your Cosense project page
- Check Cookies information (In Chrome, press F12 and show the "Application" tab)
- Copy the value of
connect.sid
# Replace the "your token" with "connect.sid"
cosense search "your project name" --auth "your token"import cosense
# Define sid on the value of "connect.sid"
sid = "s%3Ag8zuk3JlDhp1t2o45eE5Aj3kK3yHkT_N.ipbmkRVRIP..."
your_project_name = "project"
client = cosense.Client(sid = sid)
project = client.get(f"/{your_project_name}/")This project is published under the MIT license. This repository is based on kaisugi/scrapbox-python.

