コード例 #1
0
def cek_cookies():
	try:
		s.cookies = coki( "cookies.log" )
		s.cookies.load()
	except IOError:
		login()
	aa = s.get(URL.format( "/me" )).text
	if "mbasic_logout_button" in str( aa ):
		autoReport()
	else:login()
コード例 #2
0
def autoReport():
	global limit,target
	os.system("clear")
	s.cookies = coki( "cookies.log" )
	s.cookies.load()
	bs1 = BeautifulSoup( s.get(URL.format( "/language.php" )).content, "html.parser" )
	s.get(URL.format( bs1.find( "a", string = "Bahasa Indonesia" ).get( "href" )))
	banner()
	target = raw_input("[*] ID target: ")
	if target.lower() in ["dulahz","100005584243934"]:
		exit("[!] jgn report akun gue bngstss")
	bs2 = BeautifulSoup( s.get(URL.format( "/%s?v=timeline"%( target ))).content, "html.parser" )
	if not "Lainnya" in str( bs2 ):
		exit("[!] profile tidak ditemukan")
	print "[*] nama target %s%s%s "%( H,bs2.title.text,P )
	limit = int(raw_input("[?] jumlah post yang akan direport: "))
	if limit in [""]:
		exit("[!] goblokk")
	post_id(URL.format( "/%s?v=timeline"%( target )))