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 urllib2 | |
| import re | |
| for i in range(100000): | |
| try: | |
| response = urllib2.urlopen('http://www.freexs.cn/info/%s.htm' % i) | |
| t = re.findall('<h1>([\S\s]+?)</h1>', response.read())[0] | |
| print i, t | |
| except: | |
| print i |
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 os | |
| import re | |
| class Iptables(object): | |
| _iptables = 'iptables' | |
| @classmethod | |
| def get_chain(cls): |
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
| 1 |
NewerOlder