Answers for "python get url path"

0

python querystring parse

from urllib.parse import urlparse, parse_qs
URL='https://someurl.com/with/query_string?i=main&mode=front&sid=12ab&enc=+Hello'
parsed_url = urlparse(URL)
parse_qs(parsed_url.query)
Posted by: Guest on July-18-2020
0

python get url

import requests

URL = 'https://www.example.com'
page = requests.get(URL)
Posted by: Guest on June-03-2021

Python Answers by Framework

Browse Popular Code Answers by Language