Skip to content

Instantly share code, notes, and snippets.

View EricPanDev's full-sized avatar
🎯
pluh

Eric Pan EricPanDev

🎯
pluh
View GitHub Profile
@EricPanDev
EricPanDev / fxtenor.py
Last active May 18, 2024 09:46
Fetches tenor media urls given a gif id since the endpoint to do it through the API doesnt exist. (or I cant find it LOL)
from flask import Flask, jsonify, redirect
from datetime import datetime, timedelta
import requests
CACHE_DURATION = timedelta(hours=1)
cache = {}
app = Flask(__name__)
@EricPanDev
EricPanDev / discord_lootboxes.py
Last active April 3, 2024 01:32
Automatically open discord lootboxes
token = input("Copy and paste user token: ")
import requests, json, base64, time, sys
X_Super = {"client_build_number":280346}
headers = {
'authorization': token,
'x-super-properties': base64.b64encode(json.dumps(X_Super).encode('utf-8')).decode('utf-8'),
}