Bot qui live-toot les conférences de la PyConFr 2023
Go to file
Julien Palard 0df5876fbd
Generating pretty images for each talks.
2023-02-10 22:53:55 +01:00
template Generating pretty images for each talks. 2023-02-10 22:53:55 +01:00
LICENSE Licence Expat. 2023-02-10 12:02:52 +01:00
README.md Initial commit. 2023-02-10 11:46:37 +01:00
pyconfr-to-mastodon.py Generating pretty images for each talks. 2023-02-10 22:53:55 +01:00
pyproject.toml Initial commit. 2023-02-10 11:46:37 +01:00
requirements.txt Generating pretty images for each talks. 2023-02-10 22:53:55 +01:00

README.md

PyConFr Mastodon Bot

Fetching the talks

PonyConf don't have an API so to fetch the talks data, run:

$ rsync root@deb2.afpy.org:/home/ponyconf/src/db.sqlite3 ./

Dry run

To test the pyconfr-to-mastodon bot, just use --dry-run, it won't connect to Mastodon.

Passing a client_id, client_secret, and access_token is mandatory though, so one can use:

$ python pyconfr-to-mastodon.py _ _ _ --dry-run

To avoid boring "sleeps", just tell it to toot in the past, like --ahead-days 999.

Real use

Combined with pass one can use it like;

$ python pyconfr-to-mastodon.py --ahead-days 7 "$(pass afpy_mamot_client_id)" "$(pass afpy_mamot_client_secret)" "$(pass afpy_mamot_access_token)"