from urllib import request
req = request.Request(
"https://howtoxiny.org/en/docs/contributing/?query=value&filter=other",
headers = {
"User-Agent": "agent/0.0.1",
"Accept": "*/*",
},
)
request.urlopen(req).read()
References
- https://docs.python.org/3/library/urllib.request.html#urllib.request.urlopen
- https://docs.python.org/3/library/urllib.request.html#urllib.request.Request
aka
- get a page
- get a web page
- get a website