From 24a730f6e3a5748bf92d82077aeb806717cd2435 Mon Sep 17 00:00:00 2001 From: krypton-byte Date: Fri, 22 Oct 2021 15:04:29 +0700 Subject: [PATCH] fake ip --- setup.py | 1 + .../__pycache__/scrapper.cpython-39.pyc | Bin 3082 -> 3175 bytes tiktok_downloader/scrapper.py | 5 ++++- 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/setup.py b/setup.py index df5109f..7235bbb 100644 --- a/setup.py +++ b/setup.py @@ -19,6 +19,7 @@ 'flask', 'cloudscraper', 'requests', + 'faker', 'py-mini-racer' ], classifiers=[ diff --git a/tiktok_downloader/__pycache__/scrapper.cpython-39.pyc b/tiktok_downloader/__pycache__/scrapper.cpython-39.pyc index 54272370ca18b77dcfc7bce0b43c874607117380..47fb7d5c5c69aa9eb395c2294cdac369216f99d2 100644 GIT binary patch delta 1453 zcmZuw&2Jk;6rWk|m)9S094E1p_#;UJb!h~YQb5p9gw!gR3Y1Eqp<=b{jKe1O+RV;| zizN#M35g4e=7gw(BXQw`IC9~_jXz-}&VaZ8{{XxhS57L`()+#le)Hxxv+s?+tp8pw z2c?pS;P>~C2ex-s-k8LYQABYck(tK?>)ap)c%z>ikbLWV9kGwJR%`uu1^ zTBODE*=k9Yfi20OabvQeB3f!7S_WGHt27WORDiG0D&$K#U(|UG@@1V@b-tqGB~hC$ z>wL9=^!Y1eb&J)xMqSlC)@xjf*Cv;e^-J-_rMTHZJ^P^zf_1P4*c#Y6*alb=giEvq z7i)uc)IPuU1h=WV_7mKe<~rjhIx?r5bemp*<<2*V?tpKBe+GP8{%d?#ATAw->43$8 z$PaR#VNd>+`?|95{_fo&|1{u~Q5DJ5yuL;9qu`Le!-u1UxRGFk{kS(Io{A0xPeV}n z#r(Ckm03wTVmxzwKZ+ya`zO*wJ)w{NP&m*y3^R+qu&aW;aww*1RE z*jJ}`M?;^Kny!Ex2wEwDsAG#6J~=(^&%MPjLk3NM#4=xrhrz6t!SAKMU- zx`>Y9$;lrIs}H!T)|vpBbHI`$8pe90TI?^yEf*MvxxlywR?A~_muz{5KQw84xKuj)^T!-+nt@2aQBP@O%yQrPBNAF8 zGRchS5rx{8*@+|FiO2FIvTyJEN7f|A7LKN~dAR^=o)s#D1rVno79o}@IxCF#$Lo6ENjH#Doak6a2D-~i6RT^RQ)3YXJ)V*j}nX9XF_3B(* zo2%;;(smv=(C^F`U9zYhht;kW!x$F)Xa8Po>TEh3aG||0OnQk7L-lv|PDQ&>9QTJk zDT?smVi}b32Q}GC~ERim-}ML#PAjf|OyLigqab4|z}fQCo6>gjPQ}b(&Sr zo%_YJp!6ZqCIF#1T2+_bH>jf`_xc9*|Cx$6A&GZp@Gex^4Z~E5Fs!QQ?#}u)PF|fU zjMm8DN`enSS5vQhyF0j>FyareNg)j5PL!rG?{q+Tyv19n!v?|zz`Ld%fJg02X(_OT zt^V*H1ebuiw`GZokcFe(_GO^+(c?%)V(;@|_fxHY^Bdz8nAP56E|PY_nGOab0SUh` zHFwL`&UA_PhA9`lsLRDi*l-8ILU;|~3c|+#+I`Uhb~etK?T^oHj*S;>LZpGZpWC4C zft@Awb#D8@`#{3NyO2z`lUx&M&a3L*+|A8vD5r)vQHfq&P+@*;d>txr1K~peZL=hn z!uWj)No+ZF{`jP`XA None: super().__init__() - self.headers={"sec-ch-ua": '"Google Chrome";v="89", "Chromium";v="89", ";Not A Brand";v="99"',"sec-ch-ua-mobile": "?0","sec-ch-ua-platform": "Linux","sec-fetch-dest": "document","sec-fetch-mode": "navigate","sec-fetch-site": "none","sec-fetch-user": "?1","upgrade-insecure-requests": "1","user-agent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.90 Safari/537.36"} + self.headers={"sec-ch-ua": '"Google Chrome";v="89", "Chromium";v="89", ";Not A Brand";v="99"',"sec-ch-ua-mobile": "?0","sec-ch-ua-platform": "Linux","sec-fetch-dest": "document","sec-fetch-mode": "navigate","sec-fetch-site": "none","sec-fetch-user": "?1","upgrade-insecure-requests": "1","user-agent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.90 Safari/537.36", "X-Forwarded-For":fake.ipv4()} self.html = self.get(url) self.js = json.loads(re.search(r'\>(\{\"props\":.*?)\<\/script>',self.html.text).group(1)) self.account = Account(self.js['props']['pageProps']['itemInfo']['itemStruct']['author'])