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 235 views
1 answer 208 views
1 answer 101 views
101 views asked Oct 5, 2023 by avibootz
1 answer 145 views
...