<gh_stars>0
import requests
import xml.etree.ElementTree as ET
import json
import datetime
now = datetime.datetime.now()

url = "https://api-wufthacks.xlabs.one:8243/td/userprofile/V1.0.0/profile"

headers = {
    'Accept': "application/json",
    'X-Api-Key': "<KEY>",
    'Authorization': "Bearer <PASSWORD>",
    'Cache-Control': "no-cache",
    'Postman-Token': "<PASSWORD>"
    }

response = requests.request("GET", url, headers=headers)
profile = json.loads(response.text)

url = "http://www.zillow.com/webservice/GetSearchResults.htm"

querystring = {"zws-id":"X1-ZWz1g8ajhqs7wr_a2eph","address":"2114+Bigelow+Ave","citystatezip":"Seattle, WA"}

headers = {
    'Cache-Control': "no-cache",
    'Postman-Token': "<PASSWORD>"
    }

response = requests.request("GET", url, headers=headers, params=querystring)


root = ET.fromstring(response.text)
housePrice = root[2][0][0][3][0].text
houseLow = root[2][0][0][3][4][0].text
houseHigh = root[2][0][0][3][4][1].text

forename = profile["person"]["forename"]
lastname = profile["person"]["lastname"]
birthstamp = profile["person"]["dateOfBirth"]
birthDay = datetime.datetime.fromtimestamp(int(birthstamp)/100).strftime('%Y-%m-%d %H:%M:%S')
age=now.year - datetime.datetime.fromtimestamp(int(birthstamp)/100).year - 1
married = profile["person"]["maritalStatus"]
sex = profile["person"]["sex"]

import requests
import xml.etree.ElementTree as ET
import json
import datetime
now = datetime.datetime.now()

url = "https://api-wufthacks.xlabs.one:8243/td/userprofile/V1.0.0/profile"

headers = {
    'Accept': "application/json",
    'X-Api-Key': "<KEY>",
    'Authorization': "Bearer <PASSWORD>",
    'Cache-Control': "no-cache",
    'Postman-Token': "<PASSWORD>"
    }

response = requests.request("GET", url, headers=headers)
profile = json.loads(response.text)

url = "http://www.zillow.com/webservice/GetSearchResults.htm"

querystring = {"zws-id":"X1-ZWz1g8ajhqs7wr_a2eph","address":"2114+Bigelow+Ave","citystatezip":"Seattle, WA"}

headers = {
    'Cache-Control': "no-cache",
    'Postman-Token': "<PASSWORD>"
    }

response = requests.request("GET", url, headers=headers, params=querystring)


root = ET.fromstring(response.text)
housePrice = root[2][0][0][3][0].text
houseLow = root[2][0][0][3][4][0].text
houseHigh = root[2][0][0][3][4][1].text

forename = profile["person"]["forename"]
lastname = profile["person"]["lastname"]
birthstamp = profile["person"]["dateOfBirth"]
birthDay = datetime.datetime.fromtimestamp(int(birthstamp)/100).strftime('%Y-%m-%d %H:%M:%S')
age=now.year - datetime.datetime.fromtimestamp(int(birthstamp)/100).year - 1
married = profile["person"]["maritalStatus"]
sex = profile["person"]["sex"]