Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import requests
- import json
- url="https://www.umass.edu/peoplefinder/"
- headers = {'content-type': 'application/json'}
- searchData={'q': 'Alex'}
- response=requests.post(url, data=json.dumps(searchData), headers=headers)
- content = response.json()
- print(content)
- {
- "ErrorHint": "",
- "ErrorCode": 0,
- "OverflowFlag": true,
- "Results": [{
- "Affil": ["Employee"],
- "Vcard": "/peoplefinder/vcard/xxxxxxxxxxx",
- "Title": "xxxxxxxxxxxx",
- "Phone": ["xxxxxxx"],
- "Dept": ["xxxxxxxxxxx"],
- "Building": ["xxxxxxxxxx"],
- "Email": "xxxxxxxxxxxx",
- "Name": "xxxxxxxxx"
- }
Add Comment
Please, Sign In to add comment