Advertisement
mazaya

Auto Acc Friend Requests FB

Sep 13th, 2019
411
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 1.48 KB | None | 0 0
  1. # coded by: salism3
  2. # 13-09-2019
  3.  
  4. class confirm:
  5.     def __init__(self, kuki):
  6.         self.hulu = {'User-Agent':'Mozilla/5.0 (Linux; Android 8.1.0; Redmi 5A Build/OPM1.171019.026; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/77.0.3865.73 Mobile Safari/537.36', 'Cookie':kuki}
  7.         self.id = []
  8.    
  9.     def cek(self):
  10.         return r.get('https://mbasic.facebook.com', headers=self.hulu).text
  11.        
  12.     def dump(self, batas):
  13.         penentu = 0
  14.         next = 0
  15.         jumlah = 0
  16.         while penentu <= 0:
  17.             a = r.get('https://mbasic.facebook.com/friends/center/requests/?ppk='+str(next), headers=self.hulu).text
  18.             next += 1
  19.             if not "Lihat selengkapnya" in a:
  20.                 break
  21.             b = parser(a, "html.parser")
  22.             for s in b.find_all('a', string='Konfirmasi'):
  23.                 self.id.append('https://mbasic.facebook.com' + str(s.get('href')))
  24.                 jumlah += 1
  25.                 if jumlah == batas:
  26.                     penentu += 1
  27.                     break
  28.    
  29.     def hajar(self):
  30.         print("[+] Proses ....")
  31.         for ss in self.id:
  32.             c = r.get(ss, headers=self.hulu).text
  33.             time.sleep(1)
  34.         print("[+] Done!")
  35.  
  36. def home():
  37.     print("[ Auto Acc Friend Requests FB ]")
  38.     print("[ Coded by: SalisM3 ]\n")
  39.     kuki = str(input('[?] Kuki FB Ente: '))
  40.     gas = confirm(kuki)
  41.     if not "mbasic_logout_button" in gas.cek():
  42.         exit("[!] Kuki Ente Salah")
  43.     limit = int(input('[?] Limit: '))
  44.     gas.dump(limit)
  45.     print()
  46.     gas.hajar()
  47.  
  48. try:
  49.     import requests as r, time, os;os.system('clear')
  50.     from bs4 import BeautifulSoup as parser
  51.     home()
  52. except Exception as e:
  53.     print("[!] " + str(e))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement