forked from hshsbbyvg/File-open-source-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathshare.py
More file actions
24 lines (22 loc) · 896 Bytes
/
Copy pathshare.py
File metadata and controls
24 lines (22 loc) · 896 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
import requests, json
ses=requests.Session()
cok = input(" masukan cookie : ")
token = input(" masukan token : ")
idt = input(" masukan link : ")
limit = int(input(" masukan limit : "))
cookie = {"cookie":cok}
try:
n = 0
header = {"authority":"graph.facebook.com","cache-control":"max-age=0","sec-ch-ua-mobile":"?0","user-agent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/98.0.4758.66 Safari/537.36"}
for x in range(limit):
n+=1
post = ses.post(f"https://graph.facebook.com/v13.0/me/feed?link={idt}&published=0&access_token={token}",headers=header, cookies=cookie).text
data = json.loads(post)
if "id" in post:
print(f" {n}. berhasil membagikan {data['id']}")
else:
exit(" gagal membagikan, kemungkinan token invalid")
except:
exit(" gagal membagikan, kemungkinan token invalid")
if __name__ == '__main__':
menu()