all AI news
[Python] How to get full url from shortened url
Nov. 16, 2023, 12:59 a.m. | Kacper Włodarczyk
DEV Community dev.to
Sometimes when you scrape a website, you may have encountered the fact that the website returns shortened URLs to sources from other websites.
As in this case, for example, https://upflix.pl/r/Qb64Ar
this link consists of a domain and some random characters. The way a shortened link works is that it redirects you to another page. Therefore, the status_code
that our query returns is 302
Sometimes it happens that we need a full URL to get that can do this with a …
beginners code install library pip python requests library returns tutorial url urls website websites
More from dev.to / DEV Community
Jobs in AI, ML, Big Data
Software Engineer for AI Training Data (School Specific)
@ G2i Inc | Remote
Software Engineer for AI Training Data (Python)
@ G2i Inc | Remote
Software Engineer for AI Training Data (Tier 2)
@ G2i Inc | Remote
Data Engineer
@ Lemon.io | Remote: Europe, LATAM, Canada, UK, Asia, Oceania
Artificial Intelligence – Bioinformatic Expert
@ University of Texas Medical Branch | Galveston, TX
Lead Developer (AI)
@ Cere Network | San Francisco, US