Skip to content

Instantly share code, notes, and snippets.

@filipsPL

filipsPL/pyGK Secret

Created April 30, 2015 10:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save filipsPL/d5a1b191a69ea6775ba2 to your computer and use it in GitHub Desktop.
Save filipsPL/d5a1b191a69ea6775ba2 to your computer and use it in GitHub Desktop.
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