Created
September 3, 2016 18:49
-
-
Save jossef/2e513ae00b1d359d4c9896fea1fe7674 to your computer and use it in GitHub Desktop.
cron job payload to sign up for crossfit lessons
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python | |
| import requests | |
| data = { | |
| "user": { | |
| "name": "<take from F12>", | |
| "accessToken": "<take from F12>" | |
| "facebookId": "<take from F12>" | |
| }, | |
| "day": "20160904", | |
| "hour": "20:00", | |
| "type": "wod" | |
| } | |
| headers = { | |
| "Connection": "keep-alive", | |
| "Origin": "http://signup.crossfitpanda.com", | |
| "User-Agent": "Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.116 Safari/537.36", | |
| "content-type": "application/json", | |
| "Accept": "*/*", | |
| "Referer": "http://signup.crossfitpanda.com/", | |
| "Accept-Encoding": "gzip, deflate", | |
| "Accept-Language": "en-US,en;q=0.8,he;q=0.6" | |
| } | |
| r = requests.post('http://signup.crossfitpanda.com/api/signup/add', json=data) | |
| r.raise_for_status() | |
| print r.json() | |
Author
jossef
commented
Sep 3, 2016
- @GeorgeLashenko
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment