233boy / ss

Shadowsocks-Go 一键安装脚本 & 管理脚本
323 stars 191 forks source link

S #16

Open Wjbsjzb18 opened 2 years ago

Wjbsjzb18 commented 2 years ago

try: import os, colorama, requests from os import system from colorama import Fore colorama.init(autoreset=True) system("title " + "Lyrica Was Here - @8Y - Soud#5866") except Exception as m: print("Something Went Wrong\n") print(m) input() exit()

logo = """


| _ \ \ / / / \ \ V / \ V / / / ` |/ \ \ / | | (| | || | | | \ \,\/ _/ ____/ """ print(Fore.CYAN+logo) print(Fore.GREEN+"Made with Love by @8Y - Soud#5866\n\n") tot = 1 username = input(f"[{Fore.GREEN}+{Fore.RESET}] Target Username: ") if not os.path.exists("Results"): os.makedirs("Results/") if not os.path.exists(f"Results/Snap@{username}"): os.makedirs(f"Results/Snap@{username}/") try: print(f"[{Fore.YELLOW}!{Fore.RESET}] This May Take 60-90Sec") req = requests.post("https://sgm.adem.my.id/system/action.php",data=f"url=https%3A%2F%2Fstory.snapchat.com%2Fu%2F{username}&token=Safari",headers={"Host":"sgm.adem.my.id","Content-Type":"application/x-www-form-urlencoded; charset=UTF-8","Origin":"https://pastedownload.com","Connection":"keep-alive","Accept":"*/*","User-Agent":"Mozilla/5.0 (iPhone; CPU iPhone OS 15_0 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.0 @_agf.bye Mobile/15E148 Safari/604.1","Referer":"https://pastedownload.com/","Accept-Language":"en-US,en;q=0.9"}).json() ttt = len(req['links']) print(f"[{Fore.GREEN}+{Fore.RESET}] Found Total Of {ttt} Snaps") print(f"[{Fore.GREEN}+{Fore.RESET}] Dowloading Now....") for i in req["links"]: req = requests.get(i["url"]) dd = req.content if req.headers["Content-Type"] == "video/mp4": open(f"Results/Snap@{username}/@8Y-{username}|{tot}.mp4","wb").write(dd) elif req.headers["Content-Type"] == "image/jpeg": open(f"Results/Snap@{username}/@8Y-{username}|{tot}.jpeg","wb").write(dd) print(f"Done: {tot} | Total: {ttt}") tot += 1 print(f"[{Fore.GREEN}+{Fore.RESET}] Done Downloading Total Of {ttt} From @{username}\n") except: print(f"[{Fore.RED}-{Fore.RESET}] Try Again Later....\n") input("Dont Forget To Follow Me On Instagram: @_agf.bye\n\nPress Enter To Exit...")