forked from athrowaway2021/comix
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.py
20 lines (17 loc) · 1.1 KB
/
config.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# aToken cookie in the browser site (region does not matter)
# get it from the application tab in the dev tools or from a request in the network profiler
AUTH_TOKEN = "token goes here"
if (AUTH_TOKEN == "token goes here"):
print("SET YOUR AUTH TOKEN IN config.py BEFORE DOWNLOADING ! ! !")
exit()
API_DOWNLOAD_URL = "https://cmx-secure.comixology.com/ios/api/com.iconology.android.Comics/3.9.7/?deviceType=tablet&lang=en&store=US&action=getUserPurchase"
API_ISSUE_URL = "http://digital.comixology.com/ios/api/com.iconology.android.Comics/3.9.7/?deviceType=tablet&lang=en&store=US&action=getIssueSummaries"
API_LIST_URL = "https://cmx-secure.comixology.com/ios/api/com.iconology.android.Comics/3.9.7/?deviceType=tablet&lang=en&store=US&action=getPurchaseTransactions"
API_HEADERS = {
"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.88 Safari/537.36",
"x-api-version" : "3.9.7",
"x-client-application" : "com.comixology.comics",
"x-currency" : "USD_US",
"x-region" : "US",
"x-user-token" : "lwa-|" + AUTH_TOKEN
}