| 123456789101112131415161718 |
- import requests
- """
- This module contains methods to retrieve pages
- """
- def get_page(this_url):
- """
- Simple utility gets the contents of a webpage
- @TODO Add Try/Catch blocks. Handle http errors.
- :param this_url:
- :return:
- """
- print("Retrieving {}".format(this_url))
- data = requests.get(this_url)
- return data.text
|