ACT NOW: The Alteryx team will be retiring support for Community account recovery and Community email-change requests Early 2026. Make sure to check your account preferences in my.alteryx.com to make sure you have filled out your security questions. Learn more here
Start Free Trial

Alteryx Designer Desktop Discussions

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

How to validate if url exist

knozawa
ボリード

Hello,

 

Is there any way to check if the url exist?  I used download tool to check it.  Some site successfully works by looking at Download Headers.  When the Download Headers says "HTTP/1.1 200 OK", I know that the url exist.  However, some site always says "HTTP/1.1 999 Request denied".  Is that because it is private website?

 

I attached a sample workflow.

 

Sincerely,

Kazumi

 

3件の返信3
harend
アステロイド

Hi Kazumi,

 

Looks like linkedin filters based on the user agents which means that without doing some serious tweaking to the download tool to modify the headers before sending them to the sites, you might end up getting the denied message. Here is a link to a stack overflow article that covers the 999 error and user agents in more detail http://stackoverflow.com/questions/27231113/999-error-code-on-head-request-to-linkedin

 

Henry

Mikepr
メテオール

Hi Kazumi,

 

The reason why few sites does not work is because of Security provided by the website. Few websites allow only to access the public profiles and few websites does not allow to access using third party tools.

vijaysuryav93
メテオール

Though it's too late, But just posting it for future references. 

 

I have written a python based workflow/tool, where it would validate a URL to be Valid or Not Valid, It is based on the python socket library using a method 'gethostbyname'. It would be one of the fastest solution I have ever come across. This could validate any number of records. Rough estimate to validate 1000 records would be 7 Minutes. 

ラベル
トップのソリューション投稿者