def print_version(self, url): if (url.find("?page=1") != -1): temp_url = url.replace("?page=1", "") # Always add "?print=true" to the end of the url. print_url = temp_url + "?print=1" return print_url