How to get HTTP request URL with requests library in Python

1 Answer

0 votes
# pip install -U requests

import requests

url = 'https://www.collectivesolver.com/21008/how-to-sort-a-list-of-dates-in-python'
r = requests.get(url)

print(r.request.url)


'''
run:
 
https://www.collectivesolver.com/21008/how-to-sort-a-list-of-dates-in-python

'''

 



answered Nov 19, 2018 by avibootz

Related questions

1 answer 229 views
1 answer 201 views
1 answer 94 views
94 views asked Oct 5, 2023 by avibootz
1 answer 139 views
...