This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
import socket,ssl | |
from BaseHTTPServer import BaseHTTPRequestHandler,HTTPServer | |
from websocket import create_connection, WebSocket | |
from urlparse import parse_qs | |
import argparse | |
import os | |
LOOP_BACK_PORT_NUMBER = 8000 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import datetime | |
import os | |
import re | |
def response(flow): | |
with open('/tmp/linked-in-names-%s.txt' % datetime.datetime.now().date(), "a") as f: | |
names = re.findall(r'firstName":"[a-zA-Z:",. ]+',flow.response.text) | |
for name in names: | |
clean = name.lstrip().rstrip().replace('firstName":"','').replace('","lastName":"',' ').replace('","','').lower() |