~/talk

The Elephant and the Serpent: Using Mastodon with Python

Talkat PyCon Latam 2019 · 2019-08-29..08-31· [python, web-platform]
slides:none on file

Explains how Mastodon’s federation actually works using ActivityPub server-to-server federation and the inbox/outbox model, shows OAuth flow to get an OAuth access token, demos HTTP requests with requests then the mastodon.py client library, and builds a bot that posts random lines from the Zen of Python to a botsin.space account. The demo obtains a token, posts successfully, and discusses hosting options (cron, VPS, Heroku scheduler) and moderation via server blocks.

AI-written summary · about

  1. 0:00Introduction
  2. 0:47Magic
  3. 2:04Twitter is Magic
  4. 2:38Twitter is Dark Magic
  5. 3:08Incentives and Advertising
  6. 3:55Social Networks
  7. 4:09Mastodon
  8. 4:48Mastodon Web Interface
  9. 5:07Main Compose Bar
  10. 5:52Content Warning Visibility
  11. 6:12Home Column
  12. 6:44Federated Timeline
  13. 7:08Activity Pub
  14. 7:39Alice and Bob
  15. 8:27Server to Server Protocol
  16. 8:56Network Resiliency
  17. 9:31Server to Server moderation
  18. 9:46Magic of Communities
  19. 12:01The API
  20. 12:31Building a bot
  21. 12:42OAuth
  22. 13:17Access Token
  23. 14:08Making Requests
  24. 14:25Post Request
  25. 14:43Request Library
  26. 15:11Setting up Mastodon
  27. 16:20Web Browser
  28. 17:40Importing Strings
  29. 18:28Writing the Script
  30. 19:43How to Join
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.