In this post, we will see how to resolve Python – Resolve response Remote URL link with actual page
Question:
I am trying to get the actual page URL using the remote URL from JSON response. Below is the remote URL I get in an JSON API response.Best Answer:
IIUC, userequests.head
with allow_redirects=True
to ask for the final URL :If you have better answer, please add a comment about this, thank you!
Source: Stackoverflow.com
Leave a Review