Created
June 9, 2017 08:49
-
-
Save chriswebb09/6778c4619f59b25132418df808d2785a to your computer and use it in GitHub Desktop.
This file contains 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
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