22 lines
476 B
Python
22 lines
476 B
Python
import pymongo
|
|
import pprint
|
|
import json
|
|
import datetime
|
|
|
|
import requests
|
|
|
|
headers = {
|
|
"Content-Type": "application/json"
|
|
}
|
|
|
|
local_timeline_api_endpoint = "https://misskey.treehousefullofstars.com/api/notes/local-timeline"
|
|
payload = {
|
|
"withFiles": False,
|
|
"withRenotes": False,
|
|
"withReplies": False,
|
|
"limit": 50
|
|
}
|
|
|
|
response = requests.post(local_timeline_api_endpoint, headers=headers, json=payload)
|
|
|
|
pprint.pprint(response.json()) |