<commit_before>"""
First off, you will need python 2
http://www.python.org/download/releases/2.7.6/


You will next need to install lxml. The binaries are available at:
http://www.lfd.uci.edu/~gohlke/pythonlibs/#lxml

If you have 32 bit python 2.7, install "lxml-3.2.4.win32-py2.7.exe" (ctrl+f lxml should do the trick)

Next, you will need to open command line. Easiest way to do so:
<windows key>+r
type in cmd
click enter

then, in the command line that pops up, run the following commands:

cd "C:\Python27\Scripts"
easy_install pip
pip install pyquery
pip install twilio
pip install mechanize

Next, you will need a twilio account (that enables texting)
https://www.twilio.com/try-twilio

The twilio account will have an account_sid and auth_token which you will need
to set up below. It will also have a phone number. This is your "fromnum".

The "tonum" variable is your telephone number (yes, the + is needed, and it
starts with 1 and your area code)

Lastly, you will need the CRNs for the courses you are waiting for. This 
"""


account_sid = "AG854<some stuff here>47f9bad4"
auth_token = "<PASSWORD><AUTH TOKEN HERE><PASSWORD>"
tonum = "+12170123456"      #Your cellphone number
fromnum =  "+12170123456" #Your twilio number
#A list of the CRNs of each class
courses = [31423,36149,36782]
waittime=60*10   #It checks every 10 minutes



"""
Mechanize is used, so that it is easy to later add automatic registration.
The login function logs you in to enterprise. All that is now necessary is
the actual automatic registration code...
"""


from pyquery import PyQuery as pq
import mechanize
import cookielib<commit_msg>Lowered time to once an hour<commit_after>"""
First off, you will need python 2
http://www.python.org/download/releases/2.7.6/


You will next need to install lxml. The binaries are available at:
http://www.lfd.uci.edu/~gohlke/pythonlibs/#lxml

If you have 32 bit python 2.7, install "lxml-3.2.4.win32-py2.7.exe" (ctrl+f lxml should do the trick)

Next, you will need to open command line. Easiest way to do so:
<windows key>+r
type in cmd
click enter

then, in the command line that pops up, run the following commands:

cd "C:\Python27\Scripts"
easy_install pip
pip install pyquery
pip install twilio
pip install mechanize

Next, you will need a twilio account (that enables texting)
https://www.twilio.com/try-twilio

The twilio account will have an account_sid and auth_token which you will need
to set up below. It will also have a phone number. This is your "fromnum".

The "tonum" variable is your telephone number (yes, the + is needed, and it
starts with 1 and your area code)

Lastly, you will need the CRNs for the courses you are waiting for. This 
"""


account_sid = "AG854<some stuff here>47f9bad4"
auth_token = "<PASSWORD><AUTH TOKEN HERE><PASSWORD>"
tonum = "+12170123456"      #Your cellphone number
fromnum =  "+12170123456" #Your twilio number
#A list of the CRNs of each class
courses = [31423,36149,36782]
waittime=60*60   #It checks every hour



"""
Mechanize is used, so that it is easy to later add automatic registration.
The login function logs you in to enterprise. All that is now necessary is
the actual automatic registration code...
"""


from pyquery import PyQuery as pq
import mechanize
import cookielib
{'fraction_non_alphanumeric': 0.08014683389415724, 'fraction_numerical': 0.04099112878556133, 'mean_word_length': 4.232, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 13, 'https://': 2, 'lorem ipsum': 0, 'www.': 6, 'xml': 8}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4959634', 'n_tokens_mistral': 1126, 'n_tokens_neox': 1013, 'n_words': 465}