L

tdspr5

public
lamdayne1 Aug 07, 2024 Never 36
Clone
Python tdspr5 787 lines (787 loc) | 41.37 KB
1
#==Màu==#
2
do = "\033[1;91m"
3
xanhbien = "\033[1;36m"
4
vang = "\033[0;33m"
5
hong = "\033[1;35m"
6
xanhduong = "\033[1;20m"
7
xanhla = "\033[1;32m"
8
xanh="\033[1;32m"
9
cam="\033[1;33m"
10
blue="\033[1;20m"
11
lam="\033[1;20m"
12
tim="\033[1;20m"
13
syan="\033[1;36m"
14
xnhac= "\033[1;96m"
15
den="\033[1;90m"
16
luc="\033[1;92m"
17
xduong="\033[1;94m"
18
trang="\033[1;97m"
19
den = "\033[1;90m"
20
luc = "\033[1;32m"
21
trang = "\033[1;37m"
22
red = "\033[1;31m"
23
do = "\033[1;31m"
24
vang = "\033[1;33m"
25
tim = "\033[1;35m"
26
lamd = "\033[1;20m"
27
lam = "\033[1;36m"
28
tim = "\033[35m"
29
hong = "\033[1;95m"
30
# Đánh dấu bản quyền
31
edit = red + "[" + vang + "⟨⟩" + red + "] " + trang + "➩ "
32
edit1 = red + "[" + luc + "✓" + red + "] " + trang + "➩ "
33
#####[THƯ VIỆN]#######
34
import os, sys
35
try:
36
import requests, json, re, random
37
except:
38
os.system("pip install requests")
39
import requests, json, re, random
40
from random import randint
41
from time import sleep
42
from pystyle import Colors, Colorate
43
from pystyle import *
44
from datetime import datetime
45
import uuid
46
####[LOGO]#####
47
banner = Colorate.Horizontal(Colors.red_to_green, f"""
48
""")
49
######[DEF AUTO]########
50
def save(file,data_post):
51
if not open(file).read():
52
open(file,'w').write('[]')
53
with open(file)as f:
54
json_data=json.load(f)
55
json_data+=data_post
56
with open(file,'w')as f:
57
json.dump(json_data,f,indent=4)
58
def echo(text):
59
for i in range(len(text)):
60
sys.stdout.write(text[i])
61
sys.stdout.flush()
62
sleep(0.0001)
63
print()
64
def khang(khang):
65
echo(Colorate.Horizontal(Colors.green_to_white,'==='*khang))
66
def clear():
67
if os.name=='nt':os.system('cls')
68
else:os.system('clear')
69
def idelay(delaymin, delaymax):
70
delay = randint(delaymin, delaymax)
71
for demtg in range(int(delay), -1, -1):
72
print(trang+"["+xanh+"ASCII"+trang+"] ["+xanh+"L "+trang+"] ["+xanh+str(demtg)+trang+"]",end="\r")
73
sleep(0.1)
74
print(trang+"["+cam+"ASCII"+trang+"] ["+cam+"L"+xanh+"O "+trang+"] ["+cam+str(demtg)+trang+"]",end="\r")
75
sleep(0.1)
76
print(trang+"["+blue+"ASCII"+trang+"] ["+blue+"L"+xanh+"O"+cam+"A "+trang+"] ["+blue+str(demtg)+trang+"]",end="\r")
77
sleep(0.1)
78
print(trang+"["+lam+"ASCII"+trang+"] ["+lam+"L"+xanh+"O"+cam+"A"+blue+"D "+trang+"] ["+lam+str(demtg)+trang+"]",end="\r")
79
sleep(0.1)
80
print(trang+"["+tim+"ASCII"+trang+"] ["+tim+"L"+xanh+"O"+cam+"A"+blue+"D"+lam+"I "+trang+"] ["+tim+str(demtg)+trang+"]",end="\r")
81
sleep(0.1)
82
print(trang+"["+xnhac+"ASCII"+trang+"] ["+xnhac+"L"+xanh+"O"+cam+"A"+blue+"D"+lam+"I"+tim+"N "+trang+"] ["+xnhac+str(demtg)+trang+"]",end="\r")
83
sleep(0.1)
84
print(trang+"["+den+"ASCII"+trang+"] ["+den+"L"+xanh+"O"+cam+"A"+blue+"D"+lam+"I"+tim+"N"+xnhac+"G "+trang+"] ["+den+str(demtg)+trang+"]",end="\r")
85
sleep(0.1)
86
print(trang+"["+do+"ASCII"+trang+"] ["+do+"L"+xanh+"O"+cam+"A"+blue+"D"+lam+"I"+tim+"N"+xnhac+"G. "+trang+"] ["+do+str(demtg)+trang+"]",end="\r")
87
sleep(0.2)
88
print(trang+"["+vang+"ASCII"+trang+"] ["+vang+"L"+xanh+"O"+cam+"A"+blue+"D"+lam+"I"+tim+"N"+xnhac+"G.. "+trang+"] ["+vang+str(demtg)+trang+"]",end="\r")
89
sleep(0.3)
90
print(trang+"["+vang+"ASCII"+trang+"] ["+vang+"L"+xanh+"O"+cam+"A"+blue+"D"+lam+"I"+tim+"N"+xnhac+"G..."+trang+"] ["+vang+str(demtg)+trang+"]",end="\r")
91
print(trang+" ĐANG LÀM JOB TDS",end="\r")
92
def LoadJob(delay):
93
for demtg in range(int(delay), -1, -1):
94
print(trang+"Load Job Tiếp Theo Sau: "+str(demtg), end="\r")
95
sleep(0.8)
96
def jsoncookie(cookies):
97
result={}
98
try:
99
for i in cookies.split(';'):
100
result.update({i.split('=')[0]:i.split('=')[1]})
101
return result
102
except(Exception,):
103
for i in cookies.split('; '):
104
result.update({i.split('=')[0]:i.split('=')[1]})
105
return result
106
def GETID(cookie):
107
head={'authority':'www.facebook.com','accept':'text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9','accept-language':'vi','sec-ch-prefers-color-scheme':'light','sec-ch-ua':'"Chromium";v="106", "Google Chrome";v="106", "Not;A=Brand";v="99"','sec-ch-ua-mobile':'?0','sec-ch-ua-platform':'"Windows"','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 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/106.0.0.0 Safari/537.36','viewport-width':'1366',}
108
url=requests.get('https://www.facebook.com/me',headers=head,cookies=cookie).url
109
get=requests.get(url,headers=head,cookies=cookie).text
110
fb=get.split('["DTSGInitialData",[],{"token":"')[1].split('"')[0]
111
jazoest=get.split('jazoest=')[1].split('"')[0]
112
lsd=get.split('["LSD",[],{"token":"')[1].split('"')[0]
113
data={
114
'fb_dtsg':fb,
115
'jazoest':jazoest,
116
'variables':'{"showUpdatedLaunchpointRedesign":true,"useAdminedPagesForActingAccount":false,"useNewPagesYouManage":true}',
117
'doc_id':'5300338636681652'
118
}
119
get=requests.post('https://www.facebook.com/api/graphql/',headers=head,cookies=cookie,data=data).json()
120
return get['data']['viewer']['actor']['profile_switcher_eligible_profiles']['nodes']
121
class Facebook:
122
def __init__(self,cookie)->None:
123
cookie=cookie.replace(';;',';')
124
self.cookie=jsoncookie(cookie)
125
try:
126
self.head={'authority':'www.facebook.com','accept':'text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9','accept-language':'vi','sec-ch-prefers-color-scheme':'light','sec-ch-ua':'"Chromium";v="106", "Google Chrome";v="106", "Not;A=Brand";v="99"','sec-ch-ua-mobile':'?0','sec-ch-ua-platform':'"Windows"','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 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/106.0.0.0 Safari/537.36','viewport-width':'1366',}
127
self.user_id=cookie.split('i_user=')[1].split(';')[0]
128
url=requests.get('https://www.facebook.com/'+self.user_id,headers=self.head,cookies=self.cookie).url
129
get=requests.get(url,headers=self.head,cookies=self.cookie).text
130
self.fb=get.split('["DTSGInitialData",[],{"token":"')[1].split('"')[0]
131
self.jazoest=get.split('jazoest=')[1].split('"')[0]
132
self.lsd=get.split('["LSD",[],{"token":"')[1].split('"')[0]
133
except:
134
self.head={'authority':'www.facebook.com','accept':'text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9','accept-language':'vi','sec-ch-prefers-color-scheme':'light','cookie':cookie,'sec-ch-ua':'"Chromium";v="106", "Google Chrome";v="106", "Not;A=Brand";v="99"','sec-ch-ua-mobile':'?0','sec-ch-ua-platform':'"Windows"','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 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/106.0.0.0 Safari/537.36','viewport-width':'1366',}
135
self.user_id=cookie.split('i_user=')[1].split(';')[0]
136
url=requests.get('https://www.facebook.com/'+self.user_id,headers=self.head).url
137
get=requests.get(url,headers=self.head).text
138
self.fb=get.split('["DTSGInitialData",[],{"token":"')[1].split('"')[0]
139
self.jazoest=get.split('jazoest=')[1].split('"')[0]
140
self.lsd=get.split('["LSD",[],{"token":"')[1].split('"')[0]
141
def infocookie(self):
142
get=requests.get('https://www.facebook.com/me',headers=self.head,cookies=self.cookie).text
143
try:
144
name=get.split('<title>')[1].split('</title>')[0]
145
return{'success':200,'name':name,'id':self.user_id}
146
except:
147
return{'error':200}
148
def CamXuc(self,id,type):
149
url=requests.get('https://www.facebook.com/'+id,headers=self.head,cookies=self.cookie).url
150
get=requests.get(url,headers=self.head,cookies=self.cookie).text
151
feedback='ZmV'+get.split('"feedback_id":"ZmV')[1].split('"')[0]
152
trackingdata=get.split('trackingdata":{"id":"')[1].split('"')[0]
153
if type=='LIKE':id='1635855486666999'
154
if type=='LOVE':id='1678524932434102'
155
if type=='CARE':id='613557422527858'
156
if type=='HAHA':id='115940658764963'
157
if type=='WOW':id='478547315650144'
158
if type=='SAD':id='908563459236466'
159
if type=='ANGRY':id='444813342392137'
160
data={'av':self.user_id,'__user':self.user_id,'__a':'1','__dyn':'7AzHJ16U9ob8ng5K8G6EjBWo2nDwAxu13wFwhUngS3q32360CEboG4E762S1DwUx60GE3Qwb-q7oc81xoswMwto88422y11xmfz83WwgEcEhwGxu782lwv89kbxS2218wc61axe3S7Udo5qfK0zEkxe2GewGwkUtxGm2SUbElxm3y11xfxmu3W3y261eBx_y88E3VBwJCwLyES0Io88cA0z8c84qifxe3u364UrwFg662S269wkoqw','__csr':'g9Q9OOhthsIBFPQYFzQyOtvFsy4TFsyRozTsGGHN9k8W8ObECQD4QParJ4Iz8yp6A_AKlAKUKjuh5BBBVfUx3Z7AFABGl5LvKmK9yCF8xeaVAex14gGAXQ8DyKV8hyE9F8XCAyQECqcg94EgzUdGKmELCCCxycxuUfEKbwwwjEhG2JojgcobE8VEdoc8pxa9zoWfwgoC9wUw9i1awdW0G84K49UaUhwtoiwdu1sw8KUdE11o0cVU0Iq03vm00Id80qKG3-0tW0hq02Kd0ee07qi2E0hmwoU0j_w0CCw1We0Hpo1ao0x69w1jO3u0W817UgwfC2a','__req':'l','__hs':'19438.HYP:comet_pkg.2.1..2.1','dpr':'2','__ccg':'GOOD','__rev':'1007150578','__s':'ajoats:subbv5:fs4kwq','__hsi':'7213197347307427052','__comet_req':'15','fb_dtsg':self.fb,'jazoest':'25611','lsd':self.lsd,'__aaid':'710580363942837','__spin_r':'1007150578','__spin_b':'trunk','__spin_t':'1679453381','fb_api_caller_class':'RelayModern','fb_api_req_friendly_name':'CometUFIFeedbackReactMutation','variables':'{"input":{"attribution_id_v2":"CometGroupPermalinkRoot.react,comet.group.permalink,via_cold_start,1679453388936,459905,2361831622,","feedback_id":"'+feedback+'","feedback_reaction_id":"'+id+'","feedback_source":"OBJECT","is_tracking_encrypted":true,"tracking":["'+trackingdata+'"],"session_id":"12845410-1d81-40bd-95d0-ccd042ba90eb","actor_id":"'+self.user_id+'","client_mutation_id":"3"},"useDefaultActor":false,"scale":2}','server_timestamps':'true','doc_id':'5703418209680126'}
161
get=requests.post('https://www.facebook.com/api/graphql/',headers=self.head,cookies=self.cookie,data=data)
162
return get
163
def likepage(self,id):
164
url=requests.get('https://www.facebook.com/'+id,headers=self.head,cookies=self.cookie).url
165
head={'Host':'id.atpsoftware.vn','cache-control':'max-age=0','upgrade-insecure-requests':'1','origin':'https://id.atpsoftware.vn','content-type':'application/x-www-form-urlencoded','user-agent':'Mozilla/5.0 (Linux; Android 12; SM-A217F Build/SP1A.210812.016) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.104 Mobile Safari/537.36','accept':'text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9','referer':'https://id.atpsoftware.vn/'}
166
get=requests.get('https://id.atpsoftware.vn/',headers=head)
167
ck=get.cookies.get_dict()
168
get=requests.post('https://id.atpsoftware.vn/',headers=head,cookies=ck,data='linkCheckUid='+url).text
169
getid=get.split('padding: 10px 100px 0px 100px;text-transform: uppercase;font-size: 16px;font-weight: 700;outline: none;position: relative;transition: all .3s ease-out;z-index: 0;text-align: center;overflow: hidden;">')[1].split('<')[0]
170
if '1000' in getid:
171
idpro=getid
172
get=requests.get(url,headers=self.head,cookies=self.cookie).text
173
id=get.split('delegate_page":{"id":"')[1].split('"')[0]
174
data={'av':self.user_id,'__user':self.user_id,'__a':'1','__dyn':'7AzHxqU5a5Q1ryUbFuC0BVU98nwgUao5-ewSwMwNw9G2S7o762S1DwUx60p-0LVEtwMw65xO0FE886C11xmfz83WwgEcEhwGxu782lwv89kbxS2218wc61uwZx-3m1mzXw8W58jwGzEaE766FobrwKxm5o7G4-5pUfEe872m7-8wywfCm2Sq2-azo2NwwwOg2cwMwhF8-4UdUcojxK2B0oobo8oC1hxG','__csr':'g94hqPtB5JRh9lQAAAAQZimKRluh99CF4_WmZDmLqrB8Z29oKVGKQmbKrBBWBgCqmrx24WVUux6Ex0Ex2aBz9UC4U4O3C15xCdwsUhxa2WbwhUeE4Kby-0lfwam0q-00oQGA0haySJiKHg8UhwgogwEw','__req':'o','__hs':'19422.HYP:comet_pkg.2.0.0.2.1','dpr':'2','__ccg':'GOOD','__rev':'1007055511','__s':'adfco7:2ievkh:x4z7bk','__hsi':'7207283130392575182','__comet_req':'15','fb_dtsg':self.fb,'jazoest':self.jazoest,'lsd':self.lsd,'__aaid':'710580363942837','__spin_r':'1007055511','__spin_b':'trunk','__spin_t':'1678076370','fb_api_caller_class':'RelayModern','fb_api_req_friendly_name':'CometProfilePlusLikeMutation','variables':'{"input":{"page_id":"'+id+'","source":null,"actor_id":"'+self.user_id+'","client_mutation_id":"1"},"scale":2}','server_timestamps':'true','doc_id':'4867271226642619'}
175
get=requests.post('https://www.facebook.com/api/graphql/',headers=self.head,data=data,cookies=self.cookie)
176
else:
177
data={'av':self.user_id,'__user':self.user_id,'__a':'1','__dyn':'7AzHxqU5a5Q1ryaxG4VuC0BVU98nwgU765QdwSwAyU8EW0CEboG4E762S1DwUx60gu0BU2_CxS320om78bbwto88422y11xmfz83WwgEcHzoaEnxO0Bo7O2l2Utwwwi831wiEjwZwlo5qfK0zEkxe2GewGwkUtxGm2SUbElxm3y11xfxmu3W2i4U72m7-8wywfCm2Sq2-azo2NwwwOg2cwMwhF8-4UdUcojxK2B0oobo8o','__csr':'g8JNc9n2tWr5W4til-I_On8J9rshlR8nZFiELH_Hnij4JfOJLOGiLoxLBlGRuZaGF4CZddQ4L_JfCiDKWVryuiqqFAcy8x6CBtqJkF8ZVExauAbgOtLAG5FUGFptxqfxi4Hzaz8CQ2SaxC9xCi48Wqqq11g8EaoS9g9U4m224oG68sGucx68wyg6G22mfxa4Xxq7EKbwi82LwNxu48c814EC2K3O5U-2WEhCxO1EwioeUiwiE6e3HwTw18C02k-0exw0deO0jV05Swe20bTw5_w1zF03I202po6e07Co0K6Zlw0jjo0E-0qW08ug8UhBw21e0fLw5Ww9K0Z86u','__req':'o','__hs':'19363.HYP:comet_pkg.2.1.0.2.1','dpr':'2','__ccg':'GOOD','__rev':'1006793331','__s':'v80lqo:poayhk:qxdcmk','__hsi':'7185553908092803679','__comet_req':'15','fb_dtsg':self.fb,'jazoest':self.jazoest,'lsd':'V64c7kKr5hAtzX2IIDgKp8','__aaid':'775223720487728','__spin_r':'1006793331','__spin_b':'trunk','__spin_t':'1673017141','fb_api_caller_class':'RelayModern','fb_api_req_friendly_name':'CometPageLikeCommitMutation','variables':'{"input":{"attribution_id_v2":"CometSinglePageHomeRoot.react,comet.page,via_cold_start,1673017144344,576155,250100865708545,","is_tracking_encrypted":true,"page_id":"'+id+'","source":"unknown","tracking":[],"actor_id":"'+self.user_id+'","client_mutation_id":"1"},"isAdminView":false}','server_timestamps':'true','doc_id':'5491200487600992',}
178
get=requests.post('https://www.facebook.com/api/graphql/',headers=self.head,cookies=self.cookie,data=data)
179
return get
180
def group(self,id):
181
data={'av':self.user_id,'__user':self.user_id,'__a':'1','__dyn':'7AzHJ16U9ob8ng5K8G6EjBWo2nDwAxu13wsongS3q2ibwyzE2qwJyEiwsobo6u3y4o2Gwfi0LVEtwMw65xO321Rwwwg8a8465o-cwfG12wOKdwGxu782lwv89kbxS2218wc61axe3S1lwlE-U2exi4UaEW2G1jxS6FobrwKxm5oe8464-5pUfEe88o4Wm7-8xmcwfCm2CVEbUGdG1Fwh888cA0z8c84qifxe3u364UrwFg662S26','__csr':'gadNAIYllhsKOE8IpidFPhcIx34Omy9-O9OO8hZ_8-kAymHGAybJqGlvmWl7nWBWJ7GqaXHz7GFe9oy_KBl7h6h4KVah94QeKVHACDyryqKdF5GuXXBCgNpbJ5jjGm8yQEWrCixl6xWuiih5yo-8wAy84mq4poN0Vzbxe16whAufgO5U8UKi4Eyu4EjwGK78527o8411wgocU5u1MwSwFyU8Uf8igaElw8e9xK2GewNgy5o5m1nDwLwrokm16www8G03cy0arw0Zyw0aaC0mG0eJzl8ow2Jw6tw44w4uzo045W1UgSeg0z-07X81-E0cNo0By1Wwi8fE0lYw2h81a8gw9u','__req':'k','__hs':'19363.HYP:comet_pkg.2.1.0.2.1','dpr':'2','__ccg':'EXCELLENT','__rev':'1006794317','__s':'gtlvj8:fxbzro:f2kk19','__hsi':'7185658639628512803','__comet_req':'15','fb_dtsg':self.fb,'jazoest':self.jazoest,'lsd':'gKT7R4dxIBjI4wUDUP5ivT','__aaid':'1576489885859472','__spin_r':'1006794317','__spin_b':'trunk','__spin_t':'1673041526','fb_api_caller_class':'RelayModern','fb_api_req_friendly_name':'GroupCometJoinForumMutation','variables':'{"feedType":"DISCUSSION","groupID":"'+id+'","imageMediaType":"image/x-auto","input":{"action_source":"GROUP_MALL","attribution_id_v2":"CometGroupDiscussionRoot.react,comet.group,via_cold_start,1673041528761,114928,2361831622,","group_id":"'+id+'","group_share_tracking_params":{"app_id":"2220391788200892","exp_id":"null","is_from_share":false},"actor_id":"'+self.user_id+'","client_mutation_id":"1"},"inviteShortLinkKey":null,"isChainingRecommendationUnit":false,"isEntityMenu":true,"scale":2,"source":"GROUP_MALL","renderLocation":"group_mall","__relay_internal__pv__GroupsCometEntityMenuEmbeddedrelayprovider":true,"__relay_internal__pv__GlobalPanelEnabledrelayprovider":false}','server_timestamps':'true','doc_id':'5853134681430324','fb_api_analytics_tags':'["qpl_active_flow_ids=431626709"]',}
182
join=requests.post('https://www.facebook.com/api/graphql/',headers=self.head,cookies=self.cookie,data=data)
183
return join
184
def follow(self,id):
185
data={'av':self.user_id,'__user':self.user_id,'__a':'1','__dyn':'7AzHJ16UW5Eb8ng5K8G6EjBWobVo66u2i5U4e2C17xt3odEnz8K361twYwJyEiwsobo6u3y4o2Gwfi0LVEtwMw65xO2OU7m2210wEwgolzUO0-E4a3a4oaEnxO0Bo7O2l2Utwwwi831wiEjwZx-3m1mzXw8W58jwGzE8FU5e7oqBwJK2W5olwUwgojUlDw-wUwxwjFovUy2a0SEuBwJCwLyES0Io88cA0z8c84qifxe3u364UrwFg662S269wkoqw','__csr':'grl2YAW3lsBl4neziQkJhtlXNlFTsWEPsAGlkGjq8gygPqAmKoIBaQBLSWHQlpHpiHQG9QFeYyhWyFVq-iKKi8x2fKiFFFKWzpkiGDihVayCcQngjmmuFbzpUOWgpzEvy8WuueVkVUjKUC4WxmbyebzVE9oyt0xwDK4GxKUF6xOu4UWUu-EaosK7E4S3eEfE8Q58kxaHw_y8WUK9Bwfi8wCwiUhwTxqawam2G5Uc8yewFxW2t0s89Umgowue7awRwg8c80dp80Ka06980mow0b6aE0C648iO04vw10-0b9Bwa20TU0bn4A0zA0gO02oe2a2ibQ0kW03nq02cm0tGu0hm0_A08cg0Q210w2383IwSw','__req':'l','__hs':'19438.HYP:comet_pkg.2.1..2.1','dpr':'2','__ccg':'GOOD','__rev':'1007155328','__s':'x9k4g6:qvnrn2:gabyl2','__hsi':'7213309158787601147','__comet_req':'15','fb_dtsg':self.fb,'jazoest':'25533','lsd':self.jazoest,'__aaid':'2192309537797609','__spin_r':'1007155328','__spin_b':'trunk','__spin_t':'1679479414','fb_api_caller_class':'RelayModern','fb_api_req_friendly_name':'CometUserFollowMutation','variables':'{"input":{"attribution_id_v2":"ProfileCometTimelineListViewRoot.react,comet.profile.timeline.list,via_cold_start,1679479423097,686412,190055527696468,","is_tracking_encrypted":false,"subscribe_location":"PROFILE","subscribee_id":"'+id+'","tracking":null,"actor_id":"'+self.user_id+'","client_mutation_id":"1"},"scale":2}','server_timestamps':'true','doc_id':'5967051660053260'}
186
fl=requests.post('https://www.facebook.com/api/graphql/',headers=self.head,cookies=self.cookie,data=data)
187
return fl
188
def cmt(self,id,nd):
189
data={'fb_dtsg':self.fb,'jazoest':self.jazoest,'comment_text':nd,'photo':'(binary)','post':'Bình luận'}
190
url='https://upload.facebook.com/_mupload_/ufi/mbasic/advanced/?ids&photosrc=advanced_composer_comment&lpwfwef&ft_ent_identifier='+str(id)
191
r=requests.post(url,headers=self.head,cookies=self.cookie,data=data)
192
return r
193
def share(self,id_post):
194
data={'fb_dtsg':self.fb,'jazoest':self.jazoest,'fb_api_caller_class':'RelayModern','fb_api_req_friendly_name':'useCometFeedToFeedReshare_FeedToFeedMutation','variables':'{"input":{"attachments":{"link":{"share_scrape_data":"{\"share_type\":22,\"share_params\":['+id_post+']}"}},"audiences":{"undirected":{"privacy":{"allow":[],"base_state":"EVERYONE","deny":[],"tag_expansion_state":"UNSPECIFIED"}}},"is_tracking_encrypted":true,"navigation_data":{"attribution_id_v2":"CometSinglePostRoot.react,comet.post.single,via_cold_start,1667131156143,908005,,"},"source":"www","tracking":["AZXOdDS2v_ZDJSDytbos1u5RXGugxb3OhZDbZyYCHeZ2BrvYu3bItkld1wPFdskAq-5K88-e9701dA_oMoXT0zuUhJnMZXXU6BO_MxONTSqjlEw7bJ-4xD31Gu2ZbEGkwVVHqgAXzioO3EdQK8VTlpDFlm3pCa66yMRxMhj_nyJD7teGP1rNsPo0y1ORuIt9TjhYgJZbimPC3FHaEjTsPPexCorotwXgF3W6IejdjsEIKGUud10LKHuJ3RQk2I7u6NNj6itxPCmOoLACwncbr4yDn1Z-D5TKZF_yxqYCDPv6Yh2zVJHHGOYP6noPYYFcLbHfgIeXq50FqOrd2kLwkeavk5wVA3a9Ig9PXPXfmB_JfA"],"actor_id":"'+self.user_id+'","client_mutation_id":"26"},"renderLocation":"homepage_stream","scale":1,"privacySelectorRenderLocation":"COMET_STREAM","useDefaultActor":false,"displayCommentsContextEnableComment":null,"feedLocation":"NEWSFEED","displayCommentsContextIsAdPreview":null,"displayCommentsContextIsAggregatedShare":null,"displayCommentsContextIsStorySet":null,"displayCommentsFeedbackContext":null,"feedbackSource":1,"focusCommentID":null,"UFI2CommentsProvider_commentsKey":"CometModernHomeFeedQuery"}','server_timestamps':'true','doc_id':'5624054241022832',}
195
response=requests.post('https://www.facebook.com/api/graphql/',headers=self.head,cookies=self.cookie,data=data)
196
return response
197
class TDS:
198
def __init__(self,token)->None:
199
self.token=token
200
self.head={
201
'Host':'traodoisub.com',
202
'user-agent':'Mozilla/5.0 (Linux; Android 12; SM-A217F Build/SP1A.210812.016) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.104 Mobile Safari/537.36',
203
'accept':'*/*',
204
'x-requested-with':'mark.via.gp',
205
'sec-fetch-site':'same-origin',
206
'sec-fetch-mode':'cors',
207
'sec-fetch-dest':'empty',
208
'referer':'https://traodoisub.com/ex/like/',
209
'accept-encoding':'gzip, deflate',
210
'accept-language':'vi-VN,vi;q=0.9,en-US;q=0.8,en;q=0.7',
211
}
212
def login(self):
213
get=requests.get('https://traodoisub.com/api/?fields=profile&access_token='+self.token,headers=self.head).json()
214
if 'success' in get:
215
self.xu=get['data']['xu']
216
self.user=get['data']['user']
217
return{'xu':self.xu,'user':self.user}
218
else:
219
return{'error':{'code':190}}
220
def Cauhinh(self,id):
221
get=requests.get('https://traodoisub.com/api/?fields=run&id='+id+'&access_token='+self.token,headers=self.head).json()
222
if 'success' in get:
223
return{'success':200}
224
else:
225
return{'error':200}
226
def GetJob(self,type):
227
get=requests.get('https://traodoisub.com/api/?fields='+type+'&access_token='+self.token,headers=self.head).json()
228
try:
229
if get['error']=='Thao tác quá nhanh vui lòng chậm lại':
230
print(do+'TẠM THỜI HẾT NHIỆM VỤ '+type+' '.upper(),end=' \r')
231
else:
232
print(do+'TẠM THỜI HẾT NHIỆM VỤ '+type+' '.upper(),end=' \r')
233
except:
234
return get
235
def NhanJob(self,id,type):
236
get=requests.get('https://traodoisub.com/api/coin/?type='+type+'&id='+id+'&access_token='+self.token,headers=self.head).json()
237
if 'success' in get:
238
return{'success':200,'xu':get['data']['xu'],'msg':get['data']['msg'].replace('+','').replace(' Xu','')}
239
else:
240
return{'error':200}
241
def NhapTds():
242
while True:
243
if os.path.exists('v1-TokenTds.txt'):
244
with open('v1-TokenTds.txt','r')as f:
245
list=json.loads(f.read())
246
khang(30)
247
print(edit+'NHẬP '+trang+'['+vang+'1'+trang+']'+luc+' SỬ DỤNG TOKEN TDS '+vang+list['user'].upper())
248
print(edit+'NHẬP '+trang+'['+vang+'2'+trang+']'+luc+' NHẬP TOKEN TDS MỚi')
249
chon=input(edit+'VUI LÒNG NHẬP LỰA CHỌN: '+trang)
250
if chon=='1':
251
khang(30)
252
return list
253
elif chon=='2':
254
os.remove('v1-TokenTds.txt'); khang(30)
255
else:
256
print(do+'LỰA CHỌN KHÔNG XÁC ĐỊNH.'); khang(30); continue
257
if not os.path.exists('v1-TokenTds.txt'):
258
while True:
259
khang(30)
260
tk=input(edit+'NHẬP TOKEN TDS: '+trang)
261
login=TDS(tk).login()
262
if 'error' in login:
263
print(do+'TOKEN TDS KO CHÍNH XÁC')
264
continue
265
else:
266
user=login['user']
267
with open('v1-TokenTds.txt','w')as f:
268
json.dump({'user':user,'token':tk},f)
269
break
270
try:
271
with open('v1-TokenTds.txt','r')as f:
272
list=json.loads(f.read())
273
return list
274
break
275
except:
276
os.remove('v1-TokenTds.txt'); khang(30)
277
def checkinfo(cookie):
278
head={'authority':'www.facebook.com','accept':'text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9','accept-language':'vi','sec-ch-prefers-color-scheme':'light','sec-ch-ua':'"Chromium";v="106", "Google Chrome";v="106", "Not;A=Brand";v="99"','sec-ch-ua-mobile':'?0','sec-ch-ua-platform':'"Windows"','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 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/106.0.0.0 Safari/537.36','viewport-width':'1366',}
279
get=requests.get('https://www.facebook.com/me',headers=head,cookies=jsoncookie(cookie)).text
280
try:
281
name=get.split('<title>')[1].split('</title>')[0]
282
return{'success':200,'name':name}
283
except:
284
return{'error':200}
285
def success(dem,id,type,msg,xu):
286
uid=id.split('_')[1]if '_' in id else id
287
time=datetime.now().strftime('%H:%M:%S')
288
echo(f"{luc}[{vang}{dem}{luc}]{trang} | {xnhac}{time}{trang} | {luc}{type}{trang} | {xnhac}ID: {uid}{trang} | +{luc}{msg}{trang} | {luc}{str(format(int(xu), ','))} Xu")
289
def error(id,type,dem):
290
time=datetime.now().strftime('%H:%M:%S')
291
uid=id.split('_')[1]if '_' in id else id
292
print(f'{do}[{vang}{dem}{do}] | {time} | {type} | {uid} | ERROR',end=' \r');sleep(1); print(' ', end = '\r')
293
def NhapCookieFb():
294
list=[]
295
oo=[]
296
a=0
297
e=0
298
khang(30)
299
while True:
300
print(f"{trang}[{red}LƯU Ý{trang}] {luc}XÓA DẤU CÁCH Ở CUỐI COOKIE ĐỂ TRÁNH BỊ LỖI\n")
301
cookie=input(f'{edit}NHẬP COOKIE FACEBOOK {trang}: ')
302
getid=GETID(jsoncookie(cookie))
303
if len(getid)==0:
304
print(do+'COOKIE KHÔNG CÓ PAGE')
305
continue
306
else:break
307
for i in getid:
308
a+=1
309
id=i['profile']['id']
310
name=i['profile']['name']
311
oo.append({'cookie':cookie+'; i_user='+id+';','name':name,'id':id,'count':a})
312
sleep(0.2)
313
print(edit+'NHẬP '+trang+'['+vang+str(a)+trang+']'+luc+' CHẠY PAGE '+vang+id+trang+' | '+vang+name)
314
print(edit+trang+'ẤN XUỐNG DÒNG NẾU MUỐN DỪNG NHẬP ID HOẶC CHẠY ALL')
315
for i in range(len(oo)):
316
e+=1
317
chon=input(edit+'NHẬP SỐ THỨ '+vang+str(e)+trang+' : ')
318
if chon=='' and int(e)==1:
319
list=oo
320
break
321
elif chon=='':break
322
for b in oo:
323
id=b['id']
324
name=b['name']
325
count=b['count']
326
if int(chon)==count:
327
list.append({'cookie':cookie+'; i_user='+id+';','name':name,'id':id})
328
list={'cookie':cookie,'id':cookie.split('c_user=')[1].split(';')[0],'data':list}
329
return list
330
def chongblock(delaybl):
331
for i in range(delaybl, -1, -1):
332
print(f'Đang hoạt động chống block sẽ chạy lại sau {i} giây ',end = '\r');sleep(1); print(' ', end = '\r')
333
def LuuCookie():
334
while True:
335
if os.path.exists('v1-Cookie-Page-Fb-tds.txt'):
336
print(edit+'NHẬP '+trang+'['+vang+'1'+trang+']'+luc+' SỬ DỤNG COOKIE PAGE FACEBOOK ĐÃ LƯU')
337
print(edit+'NHẬP '+trang+'['+vang+'2'+trang+']'+luc+' NHẬP COOKIE FACEBOOK MỚI')
338
chon=input(edit+'VUI LÒNG NHẬP LỰA CHỌN: '+trang)
339
if chon=='1':
340
with open('v1-Cookie-Page-Fb-tds.txt','r')as f:
341
list=json.loads(f.read())
342
break
343
elif chon=='2':
344
os.remove('v1-Cookie-Page-Fb-tds.txt'); khang(30)
345
else:
346
print(do+'LỰA CHỌN KHÔNG XÁC ĐỊNh.'); khang(30); continue
347
if not os.path.exists('v1-Cookie-Page-Fb-tds.txt'):
348
list=NhapCookieFb()
349
with open('v1-Cookie-Page-Fb-tds.txt','w')as f:
350
json.dump(list,f)
351
break
352
return list
353
def main():
354
clear()
355
echo(banner)
356
get=NhapTds()
357
xu=requests.get('https://traodoisub.com/api/?fields=profile&access_token='+get['token']).json()['data']['xu']
358
listck=LuuCookie()
359
clear()
360
print(banner)
361
khang(30)
362
print(edit+vang+'USER: '+get['user'].upper())
363
print(edit+xnhac+'COIN: '+str(format(int(xu),','))+' XU')
364
khang(30)
365
print(edit+'NHẬP '+vang+'['+trang+'1'+vang+']'+luc+' CHẠY JOB LIKE')
366
print(edit+'NHẬP '+vang+'['+trang+'2'+vang+']'+luc+' CHẠY JOB LIKE 2')
367
print(edit+'NHẬP '+vang+'['+trang+'3'+vang+']'+luc+' CHẠY JOB CẢM XÚC')
368
print(edit+'NHẬP '+vang+'['+trang+'4'+vang+']'+luc+' CHẠY JOB SHARE')
369
print(edit+'NHẬP '+vang+'['+trang+'5'+vang+']'+luc+' CHẠY JOB CMT')
370
print(edit+'NHẬP '+vang+'['+trang+'6'+vang+']'+luc+' CHẠY JOB JOIN GROUP')
371
print(edit+'NHẬP '+vang+'['+trang+'7'+vang+']'+luc+' CHẠY JOB LIKE PAGE')
372
print(edit+trang+'BẠN CÓ THỂ CHỌN (1+2+3)')
373
khang(30)
374
nhap=input(edit+'NHẬP LỰA CHỌN: ')
375
listnv=[]
376
if '+' in nhap:
377
nhap=nhap.replace('+','')
378
elif '-' in nhap:
379
nhap=nhap.replace('-','')
380
elif ',' in nhap:
381
nhap=nhap.replace(',','')
382
elif '_' in nhap:
383
nhap=nhap.replace('_','')
384
elif '.' in nhap:
385
nhap=nhap.replace('.','')
386
listnv.append(nhap)
387
delaymin = int(input(edit+'NHẬP DELAY MIN: '+trang))
388
delaymax = int(input(edit+'NHẬP DELAY MAX: '+trang))
389
print(edit+'SAU ____ '+luc+'NHIỆM VỤ THÌ KÍCH HOẠT CHỐNG BLOCK.',end='\r')
390
nvblock = int(input(edit+'SAU '+trang))
391
print(f'{edit}SAU {nvblock} NHIỆM VỤ NGHỈ NGƠI ____ {luc}GIÂY ',end='\r')
392
delaybl = int(input(f'{edit}SAU {nvblock} NHIỆM VỤ NGHỈ NGƠI '+trang))
393
if str(len(listck)) == "1":jjjj="0"
394
else:
395
doinick = int(input(edit+'SAU BAO NHIÊU NHIỆM VỤ THÌ ĐỔI NICK: '+trang))
396
dem=0
397
k=0
398
demck=0
399
while True:
400
if len(listck)==0:
401
khang(30)
402
print(do+'ĐÃ XOÁ TẤT CẢ COOKIE, VUI LÒNG NHẬP LẠI')
403
listck=NhapCookieFb()
404
with open('v1-Cookie-Page-Fb-tds.txt','w')as f:
405
json.dump(listck,f)
406
with open('v1-Cookie-Page-Fb-tds.txt','w')as f:
407
json.dump(listck,f)
408
cookie_account=listck['cookie']
409
id_account=listck['id']
410
for datack in listck['data']:
411
cookie=datack['cookie']
412
name=datack['name']
413
demck+=1
414
try:
415
nhiemvu=listnv[0]
416
idck=datack['id']
417
face=Facebook(cookie)
418
Tds=TDS(get['token'])
419
cauhinh=Tds.Cauhinh(idck)
420
if 'success' in cauhinh:
421
khang(30)
422
print(luc+' PAGE ID: '+vang+idck+trang+' | '+luc+'NAME PAGE: '+vang+datack['name']+' ')
423
khang(30)
424
else:
425
print(do+'PAGE: '+vang+idck+do+' CHƯA ADD VÔ TDS')
426
listck.remove(datack)
427
continue
428
spam=0
429
error_like_a=0
430
error_like_b=0
431
error_cx=0
432
error_share=0
433
error_cmt=0
434
error_group=0
435
while True:
436
if spam==1:break
437
if nhiemvu=='':
438
print(do+'PAGE '+vang+datack['name']+do+' ĐÃ BỊ BLOCK TẤT CẢ TƯƠNG TÁC')
439
listck.remove(datack)
440
spam=1
441
break
442
if '1' in nhiemvu:
443
try:
444
listnvlike=Tds.GetJob('like')
445
print(xnhac+' ĐÃ TÌM THẤY '+vang+str(len(listnvlike))+xnhac+' NHIỆM VỤ LIKE',end=' \r'); sleep(1)
446
for D in listnvlike:
447
id=D['id']
448
if '_' in id:idlike=id.split('_')[1]
449
else:idlike=id
450
try:
451
like=face.CamXuc(idlike,'LIKE')
452
nhan=Tds.NhanJob(id,'LIKE')
453
if 'success' in nhan:
454
dem+=1
455
k+=1
456
error_like_a=0
457
success(dem,id,'LIKE',nhan['msg'],nhan['xu'])
458
if str(len(listck['data']))=='1':jjjj='0'
459
else:
460
if dem % doinick ==0:
461
spam=1
462
break
463
if dem % nvblock ==0:
464
chongblock(delaybl)
465
else:
466
idelay(delaymin,delaymax)
467
else:
468
error_like_a+=1
469
error(id,'LIKE',error_like_a)
470
if error_like_a % 2 == 0: break
471
except:
472
error_like_a+=1
473
error(id,'LIKE',error_like_a)
474
if error_like_a % 2 == 0: break
475
if error_like_a == 10:
476
aaa = checkinfo(cookie_account)
477
if 'error' in aaa:
478
check=requests.get('https://graph.facebook.com/'+id_account+'/picture?redirect=false').json()
479
try:
480
if str(check['data']['height']) == '50':
481
print(do+'FACEBOOK '+vang+id_account+do+' BỊ CP RỒI')
482
else:
483
print(do+'COOKIE '+vang+id_account+do+' BỊ LOGOUT RỒI')
484
except:
485
print(do+'COOKIE '+vang+id_account+do+' BỊ LOGOUT RỒI')
486
listck.remove(listck)
487
else:
488
print(do+'PAGE '+vang+name+do+' ĐÃ BỊ CHẶN LIKE')
489
nhiemvu = nhiemvu.replace('1','')
490
except:print(end='\r')
491
if '2' in nhiemvu:
492
try:
493
listnvlike=Tds.GetJob('likegiare')
494
print(xnhac+' ĐÃ TÌM THẤY '+vang+str(len(listnvlike))+xnhac+' NHIỆM VỤ LIKE 2',end=' \r'); sleep(1)
495
for D in listnvlike:
496
id=D['id']
497
if '_' in id:idlike=id.split('_')[1]
498
else:idlike=id
499
try:
500
like=face.CamXuc(idlike,'LIKE')
501
nhan=Tds.NhanJob(id,'LIKEGIARE')
502
if 'success' in nhan:
503
dem+=1
504
error_like_b = 0
505
success(dem,id,'LIKE 2',nhan['msg'],nhan['xu'])
506
if str(len(listck['data']))=='1':jjjj='0'
507
else:
508
if dem % doinick == 0:
509
spam=1
510
break
511
if dem % nvblock==0:
512
chongblock(delaybl)
513
else:
514
idelay(delaymin,delaymax)
515
else:
516
error_like_b+=1
517
error(id,'LIKE 2',error_like_b)
518
if error_like_b % 2 == 0: break
519
except:
520
error_like_b+=1
521
error(id,'LIKE 2',error_like_b)
522
if error_like_b % 2 == 0: break
523
if error_like_b == 10:
524
aaa=checkinfo(cookie_account)
525
if 'error' in aaa:
526
check=requests.get('https://graph.facebook.com/'+id_account+'/picture?redirect=false').json()
527
try:
528
if str(check['data']['height'])=='50':
529
print(do+'FACEBOOK '+vang+id_account+do+' BỊ CP RỒI')
530
else:
531
print(do+'COOKIE '+vang+id_account+do+' BỊ LOGOUT RỒI')
532
except:
533
print(do+'COOKIE '+vang+id_account+do+' BỊ LOGOUT RỒI')
534
listck.remove(listck)
535
else:
536
print(do+'PAGE '+vang+name+do+' ĐÃ BỊ CHẶN LIKE')
537
nhiemvu = nhiemvu.replace('2','')
538
except:print(end='\r')
539
if '3' in nhiemvu:
540
try:
541
listnvcx=Tds.GetJob('reaction')
542
print(xnhac+' ĐÃ TÌM THẤY '+vang+str(len(listnvcx))+xnhac+' NHIỆM VỤ REACTION',end=' \r'); sleep(1)
543
for D in listnvcx:
544
id=D['id']
545
type=D['type']
546
if '_' in id:idlike=id.split('_')[1]
547
else:idlike=id
548
try:
549
like=face.CamXuc(idlike,type)
550
nhan=Tds.NhanJob(id,type)
551
if 'success' in nhan:
552
dem+=1
553
error_cx = 0
554
success(dem,id,type,nhan['msg'],nhan['xu'])
555
if str(len(listck['data']))=='1':jjjj='0'
556
else:
557
if dem % doinick==0:
558
spam=1
559
break
560
if dem % nvblock==0:
561
chongblock(delaybl)
562
else:
563
idelay(delaymin,delaymax)
564
else:
565
error_cx+=1
566
error(id,type,error_cx)
567
if error_cx % 2 == 0: break
568
except:
569
error_cx+=1
570
error(id,type,error_cx)
571
if error_cx % 2 == 0: break
572
if error_cx == 10:
573
aaa=checkinfo(cookie_account)
574
if 'error' in aaa:
575
check=requests.get('https://graph.facebook.com/'+id_account+'/picture?redirect=false').json()
576
try:
577
if str(check['data']['height'])=='50':
578
print(do+'FACEBOOK '+vang+id_account+do+' BỊ CP RỒI')
579
else:
580
print(do+'COOKIE '+vang+id_account+do+' BỊ LOGOUT RỒI')
581
except:
582
print(do+'COOKIE '+vang+id_account+do+' BỊ LOGOUT RỒI')
583
listck.remove(listck)
584
else:
585
print(do+'PAGE '+vang+name+do+' ĐÃ BỊ CHẶN CẢM XÚC')
586
nhiemvu = nhiemvu.replace('3','')
587
except:print(end='\r')
588
if '4' in nhiemvu:
589
try:
590
listnvshare=Tds.GetJob('share')
591
print(xnhac+' ĐÃ TÌM THẤY '+vang+str(len(listnvshare))+xnhac+' NHIỆM VỤ SHARE',end=' \r'); sleep(1)
592
for D in listnvshare:
593
id=D['id']
594
if '_' in id:idshare=id.split('_')[1]
595
else:idshare=id
596
try:
597
share=face.share(idshare)
598
nhan=Tds.NhanJob(id,'SHARE')
599
if 'success' in nhan:
600
dem+=1
601
error_share=0
602
success(dem,id,'SHARE',nhan['msg'],nhan['xu'])
603
if str(len(listck['data']))=='1':jjjj='0'
604
else:
605
if dem % doinick == 0:
606
spam=1
607
break
608
if dem % nvblock == 0:
609
chongblock(delaybl)
610
else:
611
idelay(delaymin,delaymax)
612
else:
613
error_share+=1
614
error(id,'SHARE',error_share)
615
if error_share % 2 == 0: break
616
except:
617
error_share+=1
618
error(id,'SHARE',error_share)
619
if error_share % 2 == 0: break
620
if error_share == 10:
621
aaa=checkinfo(cookie_account)
622
if 'error' in aaa:
623
check=requests.get('https://graph.facebook.com/'+id_account+'/picture?redirect=false').json()
624
try:
625
if str(check['data']['height'])=='50':
626
print(do+'FACEBOOK '+vang+id_account+do+' BỊ CP RỒI')
627
else:
628
print(do+'COOKIE '+vang+id_account+do+' BỊ LOGOUT RỒI')
629
except:
630
print(do+'COOKIE '+vang+id_account+do+' BỊ LOGOUT RỒI')
631
listck.remove(listck)
632
else:
633
print(do+'PAGE '+vang+aaa['name']+do+' ĐÃ BỊ CHẶN SHARE BÀI')
634
nhiemvu = nhiemvu.replace('4','')
635
except:print(end='\r')
636
if '5' in nhiemvu:
637
try:
638
listnvcmt=Tds.GetJob('comment')
639
print(xnhac+' ĐÃ TÌM THẤY '+vang+str(len(listnvcmt))+xnhac+' NHIỆM VỤ CMT',end=' \r'); sleep(1)
640
for D in listnvcmt:
641
id=D['id']
642
msg=D['msg']
643
if '_' in id:idcmt=id.split('_')[1]
644
else:idcmt=id
645
try:
646
cmt=face.cmt(idcmt,msg)
647
nhan=Tds.NhanJob(id,'COMMENT')
648
if 'success' in nhan:
649
dem+=1
650
error_cmt=0
651
success(dem,id,'CMT',nhan['msg'],nhan['xu'])
652
if str(len(listck['data']))=='1':jjjj='0'
653
else:
654
if dem % doinick==0:
655
spam=1
656
break
657
if dem % nvblock==0:
658
chongblock(delaybl)
659
else:
660
idelay(delaymin,delaymax)
661
else:
662
error_cmt+=1
663
error(id,'CMT',error_cmt)
664
if error_cmt % 2 == 0: break
665
except:
666
error_cmt+=1
667
error(id,'CMT',error_cmt)
668
if error_cmt % 2 == 0: break
669
if error_cmt == 10:
670
aaa=checkinfo(cookie_account)
671
if 'error' in aaa:
672
check=requests.get('https://graph.facebook.com/'+id_account+'/picture?redirect=false').json()
673
try:
674
if str(check['data']['height'])=='50':
675
print(do+'FACEBOOK '+vang+id_account+do+' BỊ CP RỒI')
676
else:
677
print(do+'COOKIE '+vang+id_account+do+' BỊ LOGOUT RỒI')
678
except:
679
print(do+'COOKIE '+vang+id_account+do+' BỊ LOGOUT RỒI')
680
listck.remove(listck)
681
else:
682
print(do+'PAGE '+vang+aaa['name']+do+' ĐÃ BỊ CHẶN CMT')
683
nhiemvu = nhiemvu.replace('5','')
684
except:print(end='\r')
685
if '6' in nhiemvu:
686
try:
687
listnvgr=Tds.GetJob('group')
688
print(xnhac+' ĐÃ TÌM THẤY '+vang+str(len(listnvgr))+xnhac+' NHIỆM VỤ GROUP',end=' \r'); sleep(1)
689
for D in listnvgr:
690
id=D['id']
691
if '_' in id:idgr=id.split('_')[1]
692
else:idgr=id
693
try:
694
gr=face.group(idgr)
695
nhan=Tds.NhanJob(id,'GROUP')
696
if 'success' in nhan:
697
dem+=1
698
error_group=0
699
success(dem,id,'GROUP',nhan['msg'],nhan['xu'])
700
if str(len(listck['data']))=='1':jjjj='0'
701
else:
702
if dem % doinick == 0:
703
spam=1
704
break
705
if dem % nvblock == 0:
706
chongblock(delaybl)
707
else:
708
idelay(delaymin,delaymax)
709
else:
710
error_group+=1
711
error(id,'GROUP',error_group)
712
if error_group % 2 == 0: break
713
except:
714
error_group+=1
715
error(id,'GROUP',error_group)
716
if error_group % 2 == 0: break
717
if error_group == 10:
718
aaa=checkinfo(cookie_account)
719
if 'error' in aaa:
720
check=requests.get('https://graph.facebook.com/'+id_account+'/picture?redirect=false').json()
721
try:
722
if str(check['data']['height'])=='50':
723
print(do+'FACEBOOK '+vang+id_account+do+' BỊ CP RỒI')
724
else:
725
print(do+'COOKIE '+vang+id_account+do+' BỊ LOGOUT RỒI')
726
except:
727
print(do+'COOKIE '+vang+id_account+do+' BỊ LOGOUT RỒI')
728
listck.remove(listck)
729
else:
730
print(do+'PAGE '+vang+aaa['name']+do+' ĐÃ BỊ CHẶN JOIN GROUP')
731
nhiemvu = nhiemvu.replace('6','')
732
except:print(end='\r')
733
if '7' in nhiemvu:
734
try:
735
listnvpage=Tds.GetJob('page')
736
print(xnhac+' ĐÃ TÌM THẤY '+vang+str(len(listnvpage))+xnhac+' NHIỆM VỤ LIKE PAGE',end=' \r'); sleep(1)
737
for D in listnvpage:
738
id=D['id']
739
if '_' in id:idpage=id.split('_')[1]
740
else:idpage=id
741
try:
742
page=face.likepage(idpage)
743
nhan=Tds.NhanJob(id,'PAGE')
744
if 'success' in nhan:
745
dem+=1
746
error_group=0
747
success(dem,id,'PAGE',nhan['msg'],nhan['xu'])
748
if str(len(listck['data']))=='1':jjjj='0'
749
else:
750
if dem % doinick == 0:
751
spam=1
752
break
753
if dem % nvblock == 0:
754
chongblock(delaybl)
755
else:
756
idelay(delaymin,delaymax)
757
else:
758
error_page+=1
759
error(id,'PAGE',error_page)
760
if error_page % 2 == 0: break
761
except:
762
error_page+=1
763
error(id,'PAGE',error_page)
764
if error_page % 2 == 0: break
765
if error_page == 10:
766
aaa=checkinfo(cookie_account)
767
if 'error' in aaa:
768
check=requests.get('https://graph.facebook.com/'+id_account+'/picture?redirect=false').json()
769
try:
770
if str(check['data']['height'])=='50':
771
print(do+'FACEBOOK '+vang+id_account+do+' BỊ CP RỒI')
772
else:
773
print(do+'COOKIE '+vang+id_account+do+' BỊ LOGOUT RỒI')
774
except:
775
print(do+'COOKIE '+vang+id_account+do+' BỊ LOGOUT RỒI')
776
listck.remove(listck)
777
else:
778
print(do+'PAGE '+vang+aaa['name']+do+' ĐÃ BỊ CHẶN LIKE PAGE')
779
nhiemvu = nhiemvu.replace('7','')
780
except:print(end='\r')
781
LoadJob('10')
782
except:
783
print(do+'COOKIE THỨ '+vang+str(demck)+do+' DIE RỒI')
784
listck.remove(datack)
785
try:os.remove('v1-Cookie-Page-Fb-tds.txt')
786
except:print(end='\r')
787
main()