Advertisement
AntonioVillanueva

Test .....V

May 17th, 2019
324
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.38 KB | None | 0 0
  1. #!/usr/bin/env python3
  2. # coding: utf-8
  3. import requests as rq
  4.  
  5. page="http://192.168.6.117:8080/Visor/GetEventList&NumberOfEvents=10&StartDate=2019-05-17%2008:00:00&EndDate=2019-05-18%2020:00:00"
  6.  
  7. r = rq.get(page)
  8. # r.content est de type bytes et r.text de type str
  9. # si la chaîne renvoyée était du json, on l'aurait, toute
  10. # décodée dans r.json
  11. recup = r.text
  12.  
  13. print (recup)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement