CLI tool intended for posting Summer of Making devlogs from the terminal.
Python:
- download
devlog.py - run
pip install -r requirements.txtin the same directory (possibly usepip3ifpipis pip2 on your machine) - add your SoM session cookies to
session.jsonin the same directory as described below
Pyinstaller build:
- download
dist/devlog/devlog.exe - add your SoM session cookies to
session.json
ensure you have a session.json file in the same folder before running this:
- go to SoM while logged in and open developer tools.
- run
document.cookiein the console and copy the result. make sure you copied the entire cookie value. (alternatively, you can use cookie manipulation extensions) - open
session.jsonin the editor of your choice. for each cookie in your document.cookie result, make a new entry in the json:{"_journey_session": "[your session cookie here], "ahoy_visitor": "[bleh]", "ahoy_visit":"[also bleh]"}("_journey_session" is the only crucial cookie there, and has to be copied completely))
- (optional) write your devlog in a text file and save it in the same directory as devlog.py
- save the devlog screenshot/video (video not verified to work yet) in the same directory
- copy your current project's ID
- run
py devlog.py PROJECT_ID /path/to/image --devlog-file /path/to/devlog
py devlog.py PROJECT_ID imagePath [--devlog-file /path/to/devlog] [-k]
- PROJECT_ID - copied from project URL
- imagePath - points to the accompanying image to be sent with your devlog
- --devlog-file - points to a text file for the devlog text. if not present, asks for devlog content interactively
- --keep_name - specifies whether the server should know the image's original name, or a randomly generated curve