Taking an argument from user (URL)
问题 Does anyone know how I would be able to take the the URL as an argument in Python as page? Just to readline in the script, user inputs into the shell and pass it through as an argument just to make the script more portable? import sys, re import webpage_get def print_links(page): ''' find all hyperlinks on a webpage passed in as input and print ''' print '\n[*] print_links()' links = re.findall(r'(\http://\w+\.\w+[-_]*\.*\w+\.*?\w+\.*?\w+\.*[//]*\.*?\w+ [//]*?\w+[//]*?\w+)', page) # sort and