Skip to content

Instantly share code, notes, and snippets.

@chriswebb09
Created June 9, 2017 08:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chriswebb09/6778c4619f59b25132418df808d2785a to your computer and use it in GitHub Desktop.
Save chriswebb09/6778c4619f59b25132418df808d2785a to your computer and use it in GitHub Desktop.
def request_resource(self):
r = requests.get(self.url)
urls = re.findall('http[s]?://(?:[a-zA-Z]|[0-9]|[$-_@.&+]|[!*\(\),]|(?:%[0-9a-fA-F][0-9a-fA-F]))+', r.text)
return urls
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment