import os import requests import sys import subprocess import re import face_recognition import json done_checks = [] social_media = [] usernames = [] emails = [] twitter = [] instagram = [] steam = [] urls = [] urls_stalk = [] urls_done = [] name = "" adresse = "" compare = False first_dl = False def stalk(user): if len(user) > 1: global urls_stalk pastebin_url = "https://pastebin.com/u/" + user pastebin_str = "s Pastebin - Pastebin.com" patreon_url = "https://www.patreon.com/" + user patreon_str = 'created_at' gutefrage_url = "https://www.gutefrage.net/nutzer/" + user gutefrage_str = '' facebook_url = 'https://facebook.com/' + user facebook_str = ' hreflang="sv" href="https://sv-se.facebook.com/' + user instagram_url = "https://www.instagram.com/" + user + "/" instagram_str = '' steam_url = "https://steamcommunity.com/id/" + user steam_str = 'https://steamcommunity-a.akamaihd.net/public/images/skin_1/arrowDn9x5.gif' twitch_url = "https://www.twitch.tv/" + user twitch_str = "content='twitch://stream/" + user lachschon_url = "https://www.lachschon.de/community/user/" + user + "/" lachschon_str = '' URLS = [pastebin_url, patreon_url, gutefrage_url, ebay_url, facebook_url, twitter_url, instagram_url, steam_url, twitch_url, lachschon_url] STRS = [pastebin_str, patreon_str, gutefrage_str, ebay_str, facebook_str, twitter_str, instagram_str, steam_str, twitch_str, lachschon_str] for i in range(0, len(URLS)): html = getResponse(URLS[i]) if STRS[i].lower() in str(html).lower(): print("\t> " + URLS[i]) urls_stalk.append(URLS[i]) def get_twitter_img(user): url = "https://twitter.com/" + user html = subprocess.getoutput("phantomjs html.js " + url) image = find_between(html, 'https?://[^\s]+)", word).group("url") if '//t.co/' in url: last = url[-1:] if last == ".": url = url.rstrip('.') r = requests.get(url) url = r.url urls.append(url) except: e = "" def check_string_socialmedia(string): global social_media count = 0 next = 0 for word in string.split(" "): next = count + 2 if 'facebook' in word.lower(): print(string.split(" ")[next]) count +=1 def youtube(url): url = url + "/about" html = subprocess.getoutput("phantomjs html.js " + url) tmp_str = html.split('"}},"urlEndpoint":') for url in tmp_str: #print(url) url = find_between(url, '{"url":"', '","target":') print(html) def grab_instagram(profile): global done_checks global urls global instagram global usernames global compare if not "instagram: " + profile in done_checks: if not profile in usernames: usernames.append(profile) url = "https://www.instagram.com/" + profile + "/" html = subprocess.getoutput("phantomjs html.js " + url) if '"@type":"Person","name":"' in html: display_name = find_between(html, '"@type":"Person","name":"', '","alternateName":"') if not display_name in usernames: usernames.append(display_name) if not "instagram: " + display_name in done_checks: print(display_name) stalk(display_name) instagram.append("Display Name: " + display_name) description = find_between(html, '"user":{"biography":"', '","blocked_by_viewer') follower = find_between(html, 'edge_followed_by":{"count":', '},"followed_by_viewer') check_string_mail(description) check_string_url(description) instagram.append("Description: " + description) instagram.append("Follower: " + follower) #get_instagram_img(profile) // Buggy suche nach Alternative zu siehe Funktion compare = True if not "instagram: " + profile in done_checks: done_checks.append("instagram: " + profile) def grab_steam(url): global done_checks global urls global usernames if not "steam: " + profile in done_checks: url = url + "/ajaxaliases/" response = requests.get(url) html = response.text for item in html.split("newname"): username = find_between(item, '":"', '","timechanged') if not username in usernames: usernames.append(username) def grab_twitter(profile): global done_checks global urls global adresse global usernames global twitter global first_dl if not "twitter: " + profile in done_checks: url = "https://twitter.com/" + profile urls.append(url) html = subprocess.getoutput("phantomjs html.js " + url) #variables display_name = find_between(html, '