Guest User

Untitled

a guest
May 24th, 2018
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. import requests
  2. import json
  3. url="https://www.umass.edu/peoplefinder/"
  4.  
  5. headers = {'content-type': 'application/json'}
  6. searchData={'q': 'Alex'}
  7. response=requests.post(url, data=json.dumps(searchData), headers=headers)
  8. content = response.json()
  9. print(content)
  10.  
  11. {
  12. "ErrorHint": "",
  13. "ErrorCode": 0,
  14. "OverflowFlag": true,
  15. "Results": [{
  16. "Affil": ["Employee"],
  17. "Vcard": "/peoplefinder/vcard/xxxxxxxxxxx",
  18. "Title": "xxxxxxxxxxxx",
  19. "Phone": ["xxxxxxx"],
  20. "Dept": ["xxxxxxxxxxx"],
  21. "Building": ["xxxxxxxxxx"],
  22. "Email": "xxxxxxxxxxxx",
  23. "Name": "xxxxxxxxx"
  24. }
Add Comment
Please, Sign In to add comment