Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import urllib.request
- import json
- resource = urllib.request.urlopen("http://brckmrtr.de/recieveCommand.php?tagId=1")
- print(resource)
- content = resource.read().decode(resource.headers.get_content_charset())
- print(content)
- parsed_json = json.loads(content)
- print(parsed_json['command'])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement