import requests
import json
quote = requests.get("https://api.breakingbadquotes.xyz/v1/quotes").json()[0]
author = quote["author"]
quote = quote["quote"]
print(quote)
authJson = {"Authorization": "[redacted] (your wasteof token)"}
post = requests.post("https://api.wasteof.money/posts", headers = authJson, json = {"post": f"<h2>{author}</h2> <p>{quote}</p>"})
print(post.json())

ty ty, can i turn this code into a harry potter quote bot, with credit to you?

yeah, thats fine

how do i find my token?

go into your cookies on prod, and look for the token cookie

and if you have a raspberry pi or something, make a cron job to run it

View all comments