Lockerz Check

By armagidon on Mar 17, 2010

Screenshots

The Lockerz Check script written in python 2.6 , this check lockerz ptzplace and when open market play winsound
Download Python : http://python.org/ftp/python/2.6.4/python-2.6.4.msi

import time, threading
from winsound import Beep
from urllib import urlopen

locked_size = 1166

class Notice(threading.Thread):
    def __init__(self, time):
        threading.Thread.__init__(self)     
        self.time = time   
        self.start()

    def run(self):
        while True:
            Beep(900,300)
            time.sleep(self.time)

def CheckMarket():
    data = len(urlopen('http://ptzplace.lockerz.com').read())

    print "Page Size:", data
    print "Locked Size:", locked_size
    print "-"*20

    if(data == locked_size):
        return "Market closed." 
    else:
        Notice(1)
        return "Market opened!"

if __name__ == "__main__":

    while True:
        print CheckMarket()
        print "-"*20
        time.sleep(60)

Comments

Sign in to comment.
justanotherguy   -  Apr 25, 2010

ok, i've downloaded the Software, installed it, but how do i use the code?
and how do you know it works?

Thanks. Regards.

 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.