Create a gist now

Instantly share code, notes, and snippets.

@filipsPL /pyGK Secret
Created Apr 30, 2015

gk logging via python script
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import requests
payload = {
'secid': 'YourLongSecIdHere',
'nr': '2EJ3N3',
'formname': 'ruchy',
'logtype': '0',
'data': '2015-04-29',
'godzina': '12',
'minuta': '02',
'comment': 'Python script test v.00001',
'app': 'PyGK',
'app_ver': '0.0001dev',
'wpt': 'OP05E5'
}
r = requests.post(
"http://geokrety.org/ruchy.php",
data=payload)
print r.text
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment