Python requests to scrape from Android Device Manager https://www.google.com/android/devicemanager

1.3k Views Asked by At

With a little clue about Python I am trying to get location data from Android Device Manager utilizing requests. I am trying to show a JSON location feed from Android devices in the same manner pyiCloud does with Apple devices.

As pr now. I have not gotten any further than the simple:

import time, requests
r = requests.get('https://www.google.com/android/devicemanager', auth=(GoogleUsername, GooglePassword ))

f = open('dump.html', 'w+')
tmst = time.strftime('%H:%M:%S')
f.write(tmst + '<br>')
f.write(r.text)
f.close

Giving me the login screen. Anyone?


My intentions is to get live location data from my android devices without installing any app or similar on the device itself. Simply by scraping data either from Android Device Manager, or perhaps this could be solved by Google+ Location Sharing?

0

There are 0 best solutions below