File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change 15
15
# Login to your mastodon server in a browser, visit your profile, UserID is in the URL.
16
16
# Example: https://mastodon.YOURSERVER/web/accounts/YOURUSERIDISHERE
17
17
18
+ Mastodon_Server = "mastodon.social" # Set server instance
18
19
Mastodon_UserID = "000000000000000000" # Set User ID you want endpoints from
19
20
# Test in browser first, this will pull up a JSON webpage
20
21
# https://mastodon.YOURSERVER/api/v1/accounts/YOURUSERIDHERE/statuses?limit=1
@@ -53,8 +54,11 @@ def time_calc(input_time):
53
54
54
55
55
56
# Publicly available data no header required
56
- MAST_SOURCE = (
57
- "https://mastodon.cloud/api/v1/accounts/" + Mastodon_UserID + "/statuses?limit=1"
57
+ MAST_SOURCE = ("https://"
58
+ + Mastodon_Server
59
+ + "/api/v1/accounts/"
60
+ + Mastodon_UserID
61
+ + "/statuses?limit=1"
58
62
)
59
63
60
64
# Connect to Wi-Fi
You can’t perform that action at this time.
0 commit comments