<s> import urllib2 <EOL> import re <EOL> import os <EOL> def main ( ) : <EOL> res = urllib2 . urlopen ( "<STR_LIT>" ) <EOL> html = res . read ( ) <EOL> for match in re . findall ( r'<STR_LIT>' , html ) : <EOL> try : <EOL> res2 = urllib2 . urlopen ( match ) <EOL> html2 = res2 . read ( ) <EOL> mid = re . findall ( r'<STR_LIT>' , html2 ) [ <NUM_LIT:0> ] <EOL> os . system ( "<STR_LIT>" % ( mid ) ) <EOL> except : <EOL> print "<STR_LIT>" <EOL> if __name__ == '<STR_LIT:__main__>' : <EOL> main ( ) </s>
