#!/usr/bin/env python

import subprocess
import urllib

def main():
    api_url = 'http://localhost:5000/check_availability'
    courses = [{'level': 'under',
                'session': 1151,
                'subject': 'CS',
                'number': 341,
                'email': 'youremail@example.com'}]
    for course in courses:
        encoded_query = urllib.urlencode(course)
        subprocess.call(['curl', '-X', 'POST', '-H', 'Cache-Control: no-cache', '-H', 'Content-Type: application/x-www-form-urlencoded', '-d', encoded_query, api_url])

if __name__ == '__main__':
    main()


3f1e7d7a6491799d8f6b55a2a147d806fbeda9f0
<mask token>

<mask token>


def main():
    api_url = 'http://localhost:5000/check_availability'
    courses = [{'level': 'under', 'session': 1151, 'subject': 'CS',
        'number': 341, 'email': 'youremail@example.com'}]
    for course in courses:
        encoded_query = urllib.urlencode(course)
        subprocess.call(['curl', '-X', 'POST', '-H',
            'Cache-Control: no-cache', '-H',
            'Content-Type: application/x-www-form-urlencoded', '-d',
            encoded_query, api_url])


<mask token>

<mask token>


def main():
    api_url = 'http://localhost:5000/check_availability'
    courses = [{'level': 'under', 'session': 1151, 'subject': 'CS',
        'number': 341, 'email': 'youremail@example.com'}]
    for course in courses:
        encoded_query = urllib.urlencode(course)
        subprocess.call(['curl', '-X', 'POST', '-H',
            'Cache-Control: no-cache', '-H',
            'Content-Type: application/x-www-form-urlencoded', '-d',
            encoded_query, api_url])


if __name__ == '__main__':
    main()

import subprocess
import urllib


def main():
    api_url = 'http://localhost:5000/check_availability'
    courses = [{'level': 'under', 'session': 1151, 'subject': 'CS',
        'number': 341, 'email': 'youremail@example.com'}]
    for course in courses:
        encoded_query = urllib.urlencode(course)
        subprocess.call(['curl', '-X', 'POST', '-H',
            'Cache-Control: no-cache', '-H',
            'Content-Type: application/x-www-form-urlencoded', '-d',
            encoded_query, api_url])


if __name__ == '__main__':
    main()

#!/usr/bin/env python

import subprocess
import urllib

def main():
    api_url = 'http://localhost:5000/check_availability'
    courses = [{'level': 'under',
                'session': 1151,
                'subject': 'CS',
                'number': 341,
                'email': 'youremail@example.com'}]
    for course in courses:
        encoded_query = urllib.urlencode(course)
        subprocess.call(['curl', '-X', 'POST', '-H', 'Cache-Control: no-cache', '-H', 'Content-Type: application/x-www-form-urlencoded', '-d', encoded_query, api_url])

if __name__ == '__main__':
    main()

