1
0
mirror of https://github.com/aithedev/X-Bogus.git synced 2025-04-24 15:50:16 +08:00

Update example.py

This commit is contained in:
ai 2023-02-27 18:33:04 -05:00 committed by GitHub
parent e49cedcef5
commit ccf4b867d2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1,10 +1,11 @@
import execjs import execjs
import urllib.parse import urllib.parse
# Replace the empty strings with valid values
url = "" url = ""
user_agent = "" user_agent = ""
query = urllib.parse.urlparse(url).query query = urllib.parse.urlparse(url).query
xbogus = execjs.compile(open('./X-Bogus.js').read()).call('sign', query, user_agent) xbogus = execjs.compile(open('./X-Bogus.js').read()).call('sign', query, user_agent)
new_url = url + "&X-Bogus=" + xbogus new_url = url + "&X-Bogus=" + xbogus
print(new_url) print(new_url)