This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import threading | |
import feedparser | |
import urllib2 | |
import hashlib | |
import time | |
import MySQLdb |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import mechanize | |
import sys | |
br = mechanize.Browser() | |
response = br.open(sys.argv[1]) | |
for form in br.forms(): | |
print "name:[%r] id:[%r] action:[%s]" %(form.name, form.attrs.get('id'), form.action) | |
print "Controls: " | |
for control in form.controls: | |
print ' ', control.type, control.name, repr(control.value) |
NewerOlder