Categories
Latest Posts
This is a simple tool notice us if a website has a new post today. Only can work on windows OS.
import httplib
import sys
import re
from HTMLParser import HTMLParser
import time
def gethtmlfile(site, page ):
httpconn = httplib.HTTPConnection(site)
httpconn.request("GET", page)
resp = httpconn.getresponse()
resppage = resp.read()
return resppage
def search_start():
while 1:
abc = gethtmlfile("fxy.xjtu.edu.cn","/xygg.asp")
#print abc
m=abc.count('2011-4-2')
if m >3 :
while 1:
print '\a'
time.sleep(300)
search_start()
run it by python xxx.py
Blog system is a place where we share our Design and programming technoligy instruction and experience,Project mangement and Team building experience. Pay attention to our blog, and you can get our team's advices and thoughts. Please don't hate to post us a reply if you have question or suggestiion for us.