Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from time import sleep
- from requests import post as put
- from sys import exit as keluar
- from json import loads as beban
- print """
- ____ ____ ___ ____ __ __ __
- ( ___)( _ \/ __)( _ \ /__\ ( \/ )
- )__) ) _ <\__ \ )___/ /(__)\ ) (
- (__) (____/(___/(__) (__)(__)(_/\/\_)
- [ By Ichaa <3 ]
- """
- class main():
- def __init__(self,*args):
- self.persiapan()
- try:
- self.spam()
- except Exception as wibu:
- print wibu
- print "- spammers finished."
- keluar()
- def persiapan(self):
- try:
- self.file=raw_input('+ file token list: ')
- self.buka=open(self.file)
- self.id=raw_input('+ target post id: ')
- self.message=raw_input('- type <space> untuk spasi.\n+ message: ').replace('<space>','\n')
- print("+ starting jobs ...")
- print("+ post url: https://facebook.com/"+self.id)
- except Exception as f:
- print f
- self.persiapan()
- def spam(self):
- o=open(self.file).readlines()
- for x in o:
- icha=x.split('\n')[0]
- payload = {'access_token' :icha, 'message' : self.message}
- rr=put("https://graph.facebook.com/"+self.id+"/comments",data=payload)
- if "error" in rr.text.lower():
- js=beban(rr.text)
- print("- Error msg: "+js['error']['message'])
- keluar()
- else:
- print "++ spammers send successfully"
- sleep(00.01)
- self.spam()
- try:
- main()
- except:
- print "\n- spammer finished."
Advertisement
Add Comment
Please, Sign In to add comment