Skip to content

Instantly share code, notes, and snippets.

@jossef
Created September 3, 2016 18:49
Show Gist options
  • Select an option

  • Save jossef/2e513ae00b1d359d4c9896fea1fe7674 to your computer and use it in GitHub Desktop.

Select an option

Save jossef/2e513ae00b1d359d4c9896fea1fe7674 to your computer and use it in GitHub Desktop.
cron job payload to sign up for crossfit lessons
#!/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()
@jossef
Copy link
Author

jossef commented Sep 3, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment