Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.
SOLVED

Question: Download Tool - Report Redirected URL

Shawn_Solo
6 - Meteoroid

Hello all!

 

What I'm trying to do is use the Download Tool to give me the URL that a page is redirected to. I checked the headers output, but it was not there. Specifically, I'm trying to get the redirected URL from Facebook when going to the old http://www.facebook.com/pages/example/1234... page and get the newer http://www.facebook.com/handle page. I can paste the old URL into a browser and it redirects to the new one, but I need a systematic way of doing this.

 

Any ideas?

4 REPLIES 4
DiganP
Alteryx Alumni (Retired)

@Shawn_Solo Do you have an example of the redirect that actually works? The download tool should have the redirect url in the download data header. You can then parse it out using the parsing tools inside of Alteryx.

Digan
Alteryx
Shawn_Solo
6 - Meteoroid

Example of the old URL:

http://www.facebook.com/pages/AlbertsGiftscom/136350116394694

 

Redirects to new URL:

https://www.facebook.com/AlbertsGiftscom-136350116394694/

 

I don't see the redirected URL in the data header though; just the old one.

DiganP
Alteryx Alumni (Retired)

@Shawn_Solo Attached is the workflow that grabs the redirect url from the original website. In the html, the tag you want to look for is "link rel="alternate" type=". This has the redirect url in it. 

DiganP_0-1577479069366.png

Does this help?

Digan
Alteryx
Shawn_Solo
6 - Meteoroid

Truly amazing! Thank you!

Labels