Skip to content

Instantly share code, notes, and snippets.

View notagoat's full-sized avatar
🐐
!Goat

May Ottway notagoat

🐐
!Goat
View GitHub Profile
@notagoat
notagoat / main.py
Created January 20, 2020 18:42
Script to fetch all mastodon toots from a specific user.
from mastodon import Mastodon #You need to install mastodonpy for python3.
import os
instance =#Enter instance here
userid = #Enter targets userid from the instance ()
tootdict = []
mastodon = Mastodon(
access_token = '', #You need to generate an access token using mastodon's API.
api_base_url = instance,
ratelimit_method = "pace",
### Keybase proof
I hereby claim:
* I am notagoat on github.
* I am notagoat (https://keybase.io/notagoat) on keybase.
* I have a public key whose fingerprint is AB45 1C05 9AD4 3C9F 7944 BBE6 A1B2 DFDB E4AB C9FA
To claim this, I am signing this object: