<s> import urllib <EOL> import threading <EOL> from bs4 import BeautifulSoup <EOL> def ScrapeUserData ( username ) : <EOL> url = '<STR_LIT>' + username <EOL> html = urllib . urlopen ( url ) <EOL> soup = BeautifulSoup ( html ) <EOL> table1 = soup . find ( '<STR_LIT>' , { '<STR_LIT:class>' : '<STR_LIT>' } ) <EOL> td = table1 . find_all ( '<STR_LIT>' ) <EOL> string = """<STR_LIT>""" % ( td [ <NUM_LIT:4> ] . text , td [ <NUM_LIT:5> ] . contents [ <NUM_LIT:0> ] , td [ <NUM_LIT:7> ] . text , td [ <NUM_LIT:8> ] . contents [ <NUM_LIT:0> ] , td [ <NUM_LIT:10> ] . text , td [ <NUM_LIT:11> ] . contents [ <NUM_LIT:0> ] ) <EOL> name = soup . find ( '<STR_LIT>' , { '<STR_LIT:class>' : '<STR_LIT>' } ) <EOL> print <EOL> print '<STR_LIT:U+0020>' * <NUM_LIT:7> , name . text <EOL> print string <EOL> def main ( user1 , user2 ) : <EOL> t1 = threading . Thread ( target = ScrapeUserData , args = ( user1 , ) ) <EOL> t2 = threading . Thread ( target = ScrapeUserData , args = ( user2 , ) ) <EOL> t1 . start ( ) <EOL> t2 . start ( ) </s>
