Answer the question
In order to leave comments, you need to log in
Why is the page not being parsed?
I'm trying to get the html of this page:
#!/usr/bin/env python3
import requests
from bs4 import BeautifulSoup
def get_root_page_html(url: str) -> str:
html = requests.get(url)
return html.text
if __name__ == '__main__':
root_page_html = get_root_page_html('https://hh.ru')
print(root_page_html)
<html>
<head><title>404 Not Found</title></head>
<body bgcolor="white">
<center><h1>404 Not Found</h1></center>
<hr><center>nginx</center>
</body>
</html>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question