Module Expr Str Import alias Import alias ImportFrom alias alias alias ImportFrom alias ImportFrom alias ImportFrom alias alias ImportFrom alias alias ImportFrom alias ImportFrom alias alias ImportFrom alias Import alias ImportFrom alias alias ImportFrom alias Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad Call NameLoad BinOpAdd NameLoad Call AttributeLoad NameLoad attr Str attr Assign NameStore Call AttributeLoad Call NameLoad BinOpAdd Call AttributeLoad NameLoad attr Str NameLoad attr Return Call AttributeLoad Str attr GeneratorExp IfExp CompareEq NameLoad Str SubscriptLoad NameLoad Index NameLoad SubscriptLoad NameLoad Index NameLoad comprehension TupleStore NameStore NameStore Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults NameLoad body Return IfExp CompareIs NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults Num body Assign NameStore BinOpSub NameLoad BinOpMod Call NameLoad NameLoad NameLoad Return BinOpAdd NameLoad Call AttributeLoad BinOpMult Call NameLoad NameLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Return Call AttributeLoad NameLoad attr Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr NameLoad Return Call AttributeLoad NameLoad attr Call NameLoad NameLoad decorator_list FunctionDef arguments args defaults body Return Call NameLoad Call NameLoad BinOpMult Call NameLoad Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Return Call AttributeLoad NameLoad attr Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr Str attr Assign NameStore Call NameLoad SubscriptLoad NameLoad Index Str Assign NameStore Dict Str Str Str Str Assign NameStore Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad keyword NameLoad If CompareNotEq AttributeLoad NameLoad attr Num body Print Str Return Assign NameStore BinOpAdd BinOpAdd BinOpAdd BinOpAdd BinOpAdd NameLoad Str NameLoad Str NameLoad Str Assign NameStore Str Assign NameStore Dict Str Str Str Call NameLoad AttributeLoad NameLoad attr Call NameLoad Call AttributeLoad Call NameLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad If CompareNotEq AttributeLoad NameLoad attr Num body Print Str Return If CompareNotIn Str Call AttributeLoad NameLoad attr body Print Str Return Assign NameStore Str Assign NameStore Call NameLoad SubscriptLoad Call AttributeLoad NameLoad attr Index Str Assign NameStore Dict Str Str Str Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad keyword NameLoad If CompareNotEq AttributeLoad NameLoad attr Num body Print Str Return If CompareNotIn Str Call AttributeLoad NameLoad attr body Print Str Return Return SubscriptLoad Call AttributeLoad NameLoad attr Index Str decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore Str Assign NameStore Dict Str Str Str NameLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Str Assign NameStore Call AttributeLoad Call NameLoad NameLoad attr Str Assign NameStore SubscriptLoad NameLoad Slice Num Num Assign NameStore Call NameLoad NameLoad Num Assign NameStore SubscriptLoad NameLoad Slice Num Num Assign NameStore Call NameLoad NameLoad Num Assign NameStore Call AttributeLoad Call NameLoad Call NameLoad NameLoad attr Assign NameStore BinOpAdd Str Call AttributeLoad SubscriptLoad NameLoad Slice Num attr Str Assign NameStore Call AttributeLoad NameLoad attr TupleLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore BinOpAdd BinOpAdd NameLoad Str NameLoad Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr Str Assign NameStore BinOpAdd NameLoad NameLoad Assign NameStore Call NameLoad NameLoad Assign NameStore Call AttributeLoad Call AttributeLoad Call AttributeLoad Call NameLoad NameLoad attr Str attr Str Str attr Str Str Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call NameLoad NameLoad NameLoad Assign NameStore Dict Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str NameLoad Str Str Str Str Str Str Str NameLoad Assign NameStore Dict Str Str Str Str Str Str Str Str Assign NameStore Call AttributeLoad NameLoad attr Str keyword NameLoad keyword NameLoad keyword NameLoad If CompareEq AttributeLoad NameLoad attr Num body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad SubscriptLoad Call AttributeLoad SubscriptLoad NameLoad Index Num attr Str Index Num Return TupleLoad SubscriptLoad SubscriptLoad NameLoad Index Num Slice Num NameLoad orelse Print Str decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad NameLoad Str Dict body Expr Str If CompareIsNot NameLoad NameLoad body If CompareIn Str NameLoad body Assign NameStore SubscriptLoad NameLoad Index Str orelse Assign NameStore Call NameLoad Call NameLoad If CompareIn Str NameLoad body Assign NameStore SubscriptLoad NameLoad Index Str orelse Assign NameStore Str orelse Assign NameStore Call NameLoad Call NameLoad Assign NameStore Str If CompareIs NameLoad NameLoad body Assign NameStore Dict Assign NameStore Dict Str Str Str Str Str Str Str BinOpAdd Str NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Str If CompareEq NameLoad Str body Expr Call AttributeLoad NameLoad attr Dict Str Str If CompareEq NameLoad Str body Expr Call AttributeLoad NameLoad attr Dict Str NameLoad If BoolOpOr CompareEq NameLoad Str CompareEq NameLoad Str body Assign NameStore Call NameLoad NameLoad NameLoad orelse Assign NameStore Call NameLoad NameLoad NameLoad If CompareNotEq NameLoad Str body Expr Call AttributeLoad NameLoad attr Dict Str Str NameLoad NameLoad If CompareEq NameLoad Str body Assign NameStore Call AttributeLoad NameLoad attr BinOpAdd NameLoad NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad orelse If CompareEq NameLoad Str body Assign NameStore NameLoad Assign NameStore Call AttributeLoad NameLoad attr BinOpAdd NameLoad NameLoad keyword NameLoad keyword NameLoad keyword NameLoad If NameLoad body Expr Call AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad Str attr keyword Call AttributeLoad NameLoad attr keyword Call NameLoad Call NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Assign NameStore Call NameLoad NameLoad Assign NameStore SubscriptLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Index Num Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad BinOpAdd NameLoad Str For NameStore Call AttributeLoad NameLoad attr NameLoad body If CompareEq SubscriptLoad Call AttributeLoad NameLoad attr Str Index Num Str body Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad BinOpAdd NameLoad Str orelse If CompareEq SubscriptLoad Call AttributeLoad NameLoad attr Str Index Num Str body Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad BinOpAdd NameLoad Str TryExcept body Expr Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type NameLoad body Print Call AttributeLoad Str attr BinOpAdd NameLoad Str If UnaryOpNot NameLoad body Print Call AttributeLoad Str attr NameLoad decorator_list
N/A N/A 
    This module contains methods for creating request tokens and
    encryption/decryption of snaps
 N/A json N/A os hashlib sha256 sha1 md5 time time datetime datetime uuid uuid4 uuid1 base64 b64encode b64decode binascii unhexlify zipfile is_zipfile ZipFile urllib urlencode N/A requests Crypto.Cipher AES PKCS1_OAEP Crypto.PublicKey RSA N/A SECRET iEk21fuwZApXlz93750dmW22pw389dPwOk N/A STATIC_TOKEN m198sOkJEn37DjqZ32lpRu76xmw288xSQ9 N/A BLOB_ENCRYPTION_KEY M02cnQ51Ji97vwT4 N/A HASH_PATTERN 0001110111101110001111010101111011010001001110011000110001000110 make_request_token N/A N/A a b N/A N/A N/A hash_a N/A N/A N/A sha256 N/A SECRET N/A N/A a encode utf-8 hexdigest N/A hash_b N/A N/A N/A sha256 N/A N/A N/A b encode utf-8 SECRET hexdigest N/A N/A N/A join N/A N/A N/A c 1 N/A hash_b N/A i N/A hash_a N/A i N/A N/A i c N/A enumerate HASH_PATTERN N/A get_token N/A N/A auth_token N/A None N/A N/A N/A N/A auth_token None STATIC_TOKEN auth_token N/A pkcs5_pad N/A N/A data blocksize N/A 16 N/A N/A pad_count N/A blocksize N/A N/A len data blocksize N/A N/A data N/A N/A N/A N/A chr pad_count pad_count encode utf-8 N/A decrypt N/A N/A data N/A N/A N/A cipher N/A N/A AES new BLOB_ENCRYPTION_KEY N/A AES MODE_ECB N/A N/A N/A cipher decrypt N/A pkcs5_pad data N/A decrypt_story N/A N/A data key iv N/A N/A N/A akey N/A b64decode key N/A aiv N/A b64decode iv N/A cipher N/A N/A AES new akey N/A AES MODE_CBC aiv N/A N/A N/A cipher decrypt N/A pkcs5_pad data N/A timestamp N/A N/A N/A N/A N/A N/A int N/A round N/A N/A time 1000 N/A encrypt N/A N/A data N/A N/A N/A cipher N/A N/A AES new BLOB_ENCRYPTION_KEY N/A AES MODE_ECB N/A N/A N/A cipher encrypt N/A pkcs5_pad data N/A get_attestation N/A N/A username password timestamp N/A N/A N/A binary N/A N/A N/A N/A requests get https://api.casper.io/droidguard/create/binary json N/A tosend N/A b64decode N/A binary N/A binary N/A headers N/A User-Agent Content-type DroidGuard/7329000 (A116 _Quad KOT49H); gzip application/x-protobuf N/A url https://www.googleapis.com/androidantiabuse/v1/x/create?alt=PROTO&key=AIzaSyBofcZsgLSS7BOnBjZPEkk4rYwzOIz-lTI N/A androidantiabuse N/A N/A requests post url tosend headers headers N/A N/A N/A androidantiabuse status_code 200 N/A N/A Attestation androidantiabuse HTTP status code != 200 N/A N/A hashString N/A N/A N/A N/A N/A username | password | timestamp |/loq/login N/A url https://api.casper.io/droidguard/attest/binary N/A tosend N/A bytecode_proto nonce apk_digest N/A b64encode N/A androidantiabuse content N/A b64encode N/A N/A N/A sha256 hashString digest 5O40Rllov9V8PpwD5zPmmp+GQi7UMIWz2A0LWZA7UX0= N/A droidguard N/A N/A requests post url tosend N/A N/A N/A droidguard status_code 200 N/A N/A Attestation droidguard HTTP status code != 200 N/A N/A N/A binary N/A N/A droidguard json N/A N/A Attestation error: Invalid droidguard JSON / no signedAttestation N/A N/A url https://www.googleapis.com/androidcheck/v1/attestations/attest?alt=JSON&key=AIzaSyDqVnJBjE5ymo--oBJt3On7HQx9xNm1RHA N/A tosend N/A b64decode N/A N/A N/A droidguard json N/A binary N/A headers N/A User-Agent Content-Type SafetyNet/7899000 (WIKO JZO54K); gzip application/x-protobuf N/A androidcheck N/A N/A requests post url tosend headers headers N/A N/A N/A androidcheck status_code 200 N/A N/A Attestation androidcheck HTTP status code != 200 N/A N/A N/A signedAttestation N/A N/A androidcheck json N/A N/A Attestation error: Invalid androidcheck JSON / no signedAttestation N/A N/A N/A N/A N/A androidcheck json N/A signedAttestation N/A get_client_auth_token N/A N/A username password timestamp N/A N/A N/A url https://api.casper.io/security/login/signrequest/ N/A tosend N/A username password timestamp username password timestamp N/A r N/A N/A requests post url data tosend N/A result N/A N/A r json N/A result N/A encryptPassword N/A N/A email password N/A N/A N/A gdpk AAAAgMom/1a/v0lblO2Ubrt60J2gcuXSljGFQXgcyZWveWLEwo6prwgi3iJIZdodyhKZQrNWp5nKJ3srRXcUW+F1BD3baEVGcmEgqaLZUNBjm057pKRI16kB0YppeGx5qIQ5QjKzsR8ETQbKLNWgRY0QRNVz34kMJR3P/LgHax/6rmf5AAAAAwEAAQ== N/A binaryKey N/A N/A N/A b64decode gdpk encode hex N/A half N/A binaryKey N/A 8 264 N/A modulus N/A long half 16 N/A half N/A binaryKey N/A 272 278 N/A exponent N/A long half 16 N/A sha1hash N/A N/A N/A sha1 N/A b64decode gdpk digest N/A signature N/A 00 N/A N/A N/A sha1hash N/A 4 encode hex N/A key N/A N/A RSA construct N/A modulus exponent N/A cipher N/A N/A PKCS1_OAEP new key N/A plain N/A N/A email password N/A encrypted N/A N/A N/A N/A cipher encrypt plain encode hex N/A ste N/A signature encrypted N/A output N/A unhexlify ste N/A encryptedPassword N/A N/A N/A N/A N/A N/A N/A b64encode output encode ascii replace + - replace / _ N/A encryptedPassword N/A get_auth_token N/A N/A email password N/A N/A N/A encryptedPasswd N/A encryptPassword email password N/A postfields N/A device_country operatorCountry lang sdk_version google_play_services_version accountType Email service source androidId app client_sig callerPkg callerSig EncryptedPasswd us us en_US 19 7097038 HOSTED_OR_GOOGLE email audience:server:client_id:694893979329-l59f3phl42et9clpoo296d8raqoljl6p.apps.googleusercontent.com android 378c184c6070c26c com.snapchat.android 49f6badb81d89a9e38d65de76f09355071bd67e7 com.snapchat.android 49f6badb81d89a9e38d65de76f09355071bd67e7 encryptedPasswd N/A headers N/A device app User-Agent Accept-Encoding 378c184c6070c26c com.snapchat.android GoogleAuth/1.4 (mako JDQ39) gzip N/A r N/A N/A requests post https://android.clients.google.com/auth headers headers data postfields verify False N/A N/A N/A r status_code 200 N/A N/A splitted N/A N/A N/A r text split N/A expiry N/A N/A datetime fromtimestamp N/A int N/A N/A N/A N/A splitted N/A 2 split = N/A 1 N/A N/A N/A N/A splitted N/A 0 N/A 5 expiry N/A N/A Invalid gmail address N/A request N/A N/A endpoint auth_token data params files raise_for_status req_type moreheaders N/A None None None True post N/A N/A N/A Wrapper method for calling Snapchat API which adds the required auth
    token before sending the request.

    :param endpoint: URL for API endpoint
    :param data: Dictionary containing form data
    :param raise_for_status: Raise exception for 4xx and 5xx status codes
    :param req_type: The request type (GET, POST). Defaults to POST
     N/A N/A params None N/A N/A N/A now params N/A N/A now N/A params N/A now N/A N/A now N/A str N/A timestamp N/A N/A gauth params N/A N/A gauth N/A params N/A gauth N/A N/A gauth N/A N/A now N/A str N/A timestamp N/A gauth N/A N/A data None N/A N/A data N/A N/A headers N/A User-Agent Accept-Language Accept-Locale X-Snapchat-Client-Auth-Token Snapchat/9.16.2.0 (HTC One; Android 5.0.2#482424.2#21; gzip) en en_US N/A Bearer  gauth N/A N/A N/A headers update moreheaders N/A URL https://feelinsonice-hrd.appspot.com N/A N/A endpoint /loq/login N/A N/A N/A N/A headers update N/A Accept-Encoding gzip N/A N/A endpoint /bq/blob N/A N/A N/A N/A headers update N/A X-Timestamp now N/A N/A N/A endpoint /loq/login N/A endpoint /loq/device_id N/A N/A req_token N/A make_request_token STATIC_TOKEN now N/A N/A req_token N/A make_request_token auth_token now N/A N/A endpoint /bq/story_blob N/A N/A N/A N/A data update N/A timestamp req_token now req_token N/A N/A req_type post N/A N/A r N/A N/A requests post N/A URL endpoint data data files files headers headers verify False N/A N/A N/A gauth N/A N/A headers None N/A r N/A N/A requests get N/A URL endpoint params data headers headers verify False N/A raise_for_status N/A N/A N/A N/A r raise_for_status N/A r N/A make_media_id N/A N/A username N/A N/A N/A Create a unique media identifier. Used when uploading media N/A N/A N/A {username}~{uuid} format username N/A N/A username upper uuid N/A str N/A uuid1 N/A unzip_snap_mp4 N/A N/A abspath quiet N/A False N/A N/A zipped_snap N/A ZipFile abspath N/A unzip_dir N/A N/A N/A N/A os path splitext abspath N/A 0 N/A N/A N/A zipped_snap extractall unzip_dir N/A N/A N/A os rename abspath N/A unzip_dir .zip N/A f N/A N/A os listdir unzip_dir N/A N/A N/A N/A N/A N/A f split ~ N/A 0 media N/A N/A N/A N/A os rename N/A N/A N/A os path join unzip_dir f N/A unzip_dir .mp4 N/A N/A N/A N/A N/A N/A f split ~ N/A 0 overlay N/A N/A N/A N/A os rename N/A N/A N/A os path join unzip_dir f N/A unzip_dir _overlay.png N/A N/A N/A N/A N/A os rmdir unzip_dir N/A N/A N/A OSError N/A N/A N/A N/A Something other than a video or overlay was in {0}.                Cannot remove directory, not empty. format N/A unzip_dir .zip N/A N/A quiet N/A N/A N/A N/A Unzipped {0} format abspath N/A