@NateTanner/

EveryRuddyRoutine

Python

No description

fork
loading
Files
  • main.py
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
import requests
import datetime

url = "https://api.roblox.com/marketplace/game-pass-product-info?gamePassId="

while True:
	item = input("Item ID: ")
	newurl = url + item # gets the url that will be connected to
	json_data = requests.get(newurl).json() # connects to the url
	gamepassName = json_data["Name"]
	gamepassSales = json_data["Sales"]
	gamepassPrice = json_data["PriceInRobux"]
	#gamepassDate = json_data["Created"]
	#gamepassDate = datetime.date(int(gamepassDate[0:3]), int(gamepassDate[5:6]), int(gamepassDate[8:9]))
	#now = datetime.datetime.now()
	#delta = now - gamepassDate
	#totalDays = delta.days
	totalEarnings = (gamepassPrice * gamepassSales) * .7
	totalMoney = totalEarnings * .0035
	print("\n\nName: " + str(gamepassName) + "\n   Price: " + str(float(gamepassPrice)) + "\n   Earned Robux Untaxed:   " + str(float(gamepassPrice * gamepassSales)) + "\n   Earned Robux Taxed : " + str(totalEarnings) + "\n   Earned Cash: " + str(totalMoney) + " \n\n")