need to get new cookies
This commit is contained in:
@@ -0,0 +1,274 @@
|
||||
from typing import Any
|
||||
from dataclasses import dataclass
|
||||
import json
|
||||
|
||||
|
||||
@dataclass
|
||||
class JsDataPojo:
|
||||
opts: str
|
||||
ttst: int
|
||||
ifov: bool
|
||||
hc: int
|
||||
br_oh: int
|
||||
br_ow: int
|
||||
ua: str
|
||||
wbd: bool
|
||||
tagpu: float
|
||||
wdif: bool
|
||||
wdifrm: bool
|
||||
npmtm: bool
|
||||
br_h: int
|
||||
br_w: int
|
||||
isf: bool
|
||||
nddc: int
|
||||
rs_h: int
|
||||
rs_w: int
|
||||
rs_cd: int
|
||||
phe: bool
|
||||
nm: bool
|
||||
jsf: bool
|
||||
lg: str
|
||||
pr: int
|
||||
ars_h: int
|
||||
ars_w: int
|
||||
tz: int
|
||||
str_ss: bool
|
||||
str_ls: bool
|
||||
str_idb: bool
|
||||
str_odb: bool
|
||||
plgod: bool
|
||||
plg: int
|
||||
plgne: str
|
||||
plgre: str
|
||||
plgof: str
|
||||
plggt: str
|
||||
pltod: bool
|
||||
hcovdr: bool
|
||||
hcovdr2: bool
|
||||
plovdr: bool
|
||||
plovdr2: bool
|
||||
ftsovdr: bool
|
||||
ftsovdr2: bool
|
||||
lb: bool
|
||||
eva: int
|
||||
lo: bool
|
||||
ts_mtp: int
|
||||
ts_tec: bool
|
||||
ts_tsa: bool
|
||||
vnd: str
|
||||
bid: str
|
||||
mmt: str
|
||||
plu: str
|
||||
hdn: bool
|
||||
awe: bool
|
||||
geb: bool
|
||||
dat: bool
|
||||
med: str
|
||||
aco: str
|
||||
acots: bool
|
||||
acmp: str
|
||||
acmpts: bool
|
||||
acw: str
|
||||
acwts: bool
|
||||
acma: str
|
||||
acmats: bool
|
||||
acaa: str
|
||||
acaats: bool
|
||||
ac3: str
|
||||
ac3ts: bool
|
||||
acf: str
|
||||
acfts: bool
|
||||
acmp4: str
|
||||
acmp4ts: bool
|
||||
acmp3: str
|
||||
acmp3ts: bool
|
||||
acwm: str
|
||||
acwmts: bool
|
||||
ocpt: bool
|
||||
vco: str
|
||||
vcots: bool
|
||||
vch: str
|
||||
vchts: bool
|
||||
vcw: str
|
||||
vcwts: bool
|
||||
vc3: str
|
||||
vc3ts: bool
|
||||
vcmp: str
|
||||
vcmpts: bool
|
||||
vcq: str
|
||||
vcqts: bool
|
||||
vc1: str
|
||||
vc1ts: bool
|
||||
dvm: int
|
||||
sqt: bool
|
||||
so: str
|
||||
wdw: bool
|
||||
cokys: str
|
||||
ecpc: bool
|
||||
lgs: bool
|
||||
lgsod: bool
|
||||
psn: bool
|
||||
edp: bool
|
||||
addt: bool
|
||||
wsdc: bool
|
||||
ccsr: bool
|
||||
nuad: bool
|
||||
bcda: bool
|
||||
idn: bool
|
||||
capi: bool
|
||||
svde: bool
|
||||
vpbq: bool
|
||||
ucdv: bool
|
||||
spwn: bool
|
||||
emt: bool
|
||||
bfr: bool
|
||||
dbov: bool
|
||||
cfpfe: str
|
||||
stcfp: str
|
||||
ckwa: bool
|
||||
glvd: str
|
||||
glrd: str
|
||||
wwl: bool
|
||||
jset: int
|
||||
|
||||
@staticmethod
|
||||
def from_dict(obj: Any) -> 'JsDataPojo':
|
||||
_opts = str(obj.get("opts"))
|
||||
_ttst = int(obj.get("ttst"))
|
||||
_ifov = False
|
||||
_hc = int(obj.get("hc"))
|
||||
_br_oh = int(obj.get("br_oh"))
|
||||
_br_ow = int(obj.get("br_ow"))
|
||||
_ua = str(obj.get("ua"))
|
||||
_wbd = False
|
||||
_tagpu = float(obj.get("tagpu"))
|
||||
_wdif = False
|
||||
_wdifrm = False
|
||||
_npmtm = False
|
||||
_br_h = int(obj.get("br_h"))
|
||||
_br_w = int(obj.get("br_w"))
|
||||
_isf =
|
||||
_nddc = int(obj.get("nddc"))
|
||||
_rs_h = int(obj.get("rs_h"))
|
||||
_rs_w = int(obj.get("rs_w"))
|
||||
_rs_cd = int(obj.get("rs_cd"))
|
||||
_phe =
|
||||
_nm =
|
||||
_jsf =
|
||||
_lg = str(obj.get("lg"))
|
||||
_pr = int(obj.get("pr"))
|
||||
_ars_h = int(obj.get("ars_h"))
|
||||
_ars_w = int(obj.get("ars_w"))
|
||||
_tz = int(obj.get("tz"))
|
||||
_str_ss =
|
||||
_str_ls =
|
||||
_str_idb =
|
||||
_str_odb =
|
||||
_plgod =
|
||||
_plg = int(obj.get("plg"))
|
||||
_plgne = str(obj.get("plgne"))
|
||||
_plgre = str(obj.get("plgre"))
|
||||
_plgof = str(obj.get("plgof"))
|
||||
_plggt = str(obj.get("plggt"))
|
||||
_pltod =
|
||||
_hcovdr =
|
||||
_hcovdr2 =
|
||||
_plovdr =
|
||||
_plovdr2 =
|
||||
_ftsovdr =
|
||||
_ftsovdr2 =
|
||||
_lb =
|
||||
_eva = int(obj.get("eva"))
|
||||
_lo =
|
||||
_ts_mtp = int(obj.get("ts_mtp"))
|
||||
_ts_tec =
|
||||
_ts_tsa =
|
||||
_vnd = str(obj.get("vnd"))
|
||||
_bid = str(obj.get("bid"))
|
||||
_mmt = str(obj.get("mmt"))
|
||||
_plu = str(obj.get("plu"))
|
||||
_hdn =
|
||||
_awe =
|
||||
_geb =
|
||||
_dat =
|
||||
_med = str(obj.get("med"))
|
||||
_aco = str(obj.get("aco"))
|
||||
_acots =
|
||||
_acmp = str(obj.get("acmp"))
|
||||
_acmpts =
|
||||
_acw = str(obj.get("acw"))
|
||||
_acwts =
|
||||
_acma = str(obj.get("acma"))
|
||||
_acmats =
|
||||
_acaa = str(obj.get("acaa"))
|
||||
_acaats =
|
||||
_ac3 = str(obj.get("ac3"))
|
||||
_ac3ts =
|
||||
_acf = str(obj.get("acf"))
|
||||
_acfts =
|
||||
_acmp4 = str(obj.get("acmp4"))
|
||||
_acmp4ts =
|
||||
_acmp3 = str(obj.get("acmp3"))
|
||||
_acmp3ts =
|
||||
_acwm = str(obj.get("acwm"))
|
||||
_acwmts =
|
||||
_ocpt =
|
||||
_vco = str(obj.get("vco"))
|
||||
_vcots =
|
||||
_vch = str(obj.get("vch"))
|
||||
_vchts =
|
||||
_vcw = str(obj.get("vcw"))
|
||||
_vcwts =
|
||||
_vc3 = str(obj.get("vc3"))
|
||||
_vc3ts =
|
||||
_vcmp = str(obj.get("vcmp"))
|
||||
_vcmpts =
|
||||
_vcq = str(obj.get("vcq"))
|
||||
_vcqts =
|
||||
_vc1 = str(obj.get("vc1"))
|
||||
_vc1ts =
|
||||
_dvm = int(obj.get("dvm"))
|
||||
_sqt =
|
||||
_so = str(obj.get("so"))
|
||||
_wdw =
|
||||
_cokys = str(obj.get("cokys"))
|
||||
_ecpc =
|
||||
_lgs =
|
||||
_lgsod =
|
||||
_psn =
|
||||
_edp =
|
||||
_addt =
|
||||
_wsdc =
|
||||
_ccsr =
|
||||
_nuad =
|
||||
_bcda =
|
||||
_idn =
|
||||
_capi =
|
||||
_svde =
|
||||
_vpbq =
|
||||
_ucdv =
|
||||
_spwn =
|
||||
_emt =
|
||||
_bfr =
|
||||
_dbov =
|
||||
_cfpfe = str(obj.get("cfpfe"))
|
||||
_stcfp = str(obj.get("stcfp"))
|
||||
_ckwa =
|
||||
_glvd = str(obj.get("glvd"))
|
||||
_glrd = str(obj.get("glrd"))
|
||||
_wwl =
|
||||
_jset = int(obj.get("jset"))
|
||||
return Root(_opts, _ttst, _ifov, _hc, _br_oh, _br_ow, _ua, _wbd, _tagpu, _wdif, _wdifrm, _npmtm, _br_h, _br_w,
|
||||
_isf, _nddc, _rs_h, _rs_w, _rs_cd, _phe, _nm, _jsf, _lg, _pr, _ars_h, _ars_w, _tz, _str_ss, _str_ls,
|
||||
_str_idb, _str_odb, _plgod, _plg, _plgne, _plgre, _plgof, _plggt, _pltod, _hcovdr, _hcovdr2,
|
||||
_plovdr, _plovdr2, _ftsovdr, _ftsovdr2, _lb, _eva, _lo, _ts_mtp, _ts_tec, _ts_tsa, _vnd, _bid, _mmt,
|
||||
_plu, _hdn, _awe, _geb, _dat, _med, _aco, _acots, _acmp, _acmpts, _acw, _acwts, _acma, _acmats,
|
||||
_acaa, _acaats, _ac3, _ac3ts, _acf, _acfts, _acmp4, _acmp4ts, _acmp3, _acmp3ts, _acwm, _acwmts,
|
||||
_ocpt, _vco, _vcots, _vch, _vchts, _vcw, _vcwts, _vc3, _vc3ts, _vcmp, _vcmpts, _vcq, _vcqts, _vc1,
|
||||
_vc1ts, _dvm, _sqt, _so, _wdw, _cokys, _ecpc, _lgs, _lgsod, _psn, _edp, _addt, _wsdc, _ccsr, _nuad,
|
||||
_bcda, _idn, _capi, _svde, _vpbq, _ucdv, _spwn, _emt, _bfr, _dbov, _cfpfe, _stcfp, _ckwa, _glvd,
|
||||
_glrd, _wwl, _jset)
|
||||
|
||||
# Example Usage
|
||||
# jsonstring = json.loads(myjsonstring)
|
||||
# root = Root.from_dict(jsonstring)
|
||||
Reference in New Issue
Block a user