small code adjustments xhamster
This commit is contained in:
parent
83d21bdc6e
commit
34c780346a
@ -10,7 +10,7 @@ def fetch_page(url):
|
|||||||
response = requests.get(url)
|
response = requests.get(url)
|
||||||
if response.status_code != 200:
|
if response.status_code != 200:
|
||||||
print(f"Failed to retrieve the page. Status code: {response.status_code}")
|
print(f"Failed to retrieve the page. Status code: {response.status_code}")
|
||||||
return None
|
quit()
|
||||||
return response.text
|
return response.text
|
||||||
|
|
||||||
|
|
||||||
@ -26,7 +26,7 @@ def download_video(link):
|
|||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
url = "https://es.xhamsterporno.mx/gay/creators/nipple-pump-pig/exclusive"
|
url = "https://xhamster.com/gay/creators/nipple-pump-pig/exclusive"
|
||||||
html_content = fetch_page(url)
|
html_content = fetch_page(url)
|
||||||
|
|
||||||
if not html_content:
|
if not html_content:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user