<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Validating web URLs in a database file in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/validating-web-urls-in-a-database-file/m-p/227165#M17622</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;We have high quality PDF maps for most of our Wildlife Areas.&amp;nbsp; The feature class we put out in our web applications contains a field with a hyper link to these PDFs.&amp;nbsp; Not all Wildlife Areas have a PDF map but I'd like to programmatically populate the field and then NULL out the field if there is no PDF map at that web location.&amp;nbsp; Does anyone know how to test the validity of a web URL in Python?&amp;nbsp;&amp;nbsp; Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 16 Feb 2012 19:24:36 GMT</pubDate>
    <dc:creator>RandyKreuziger</dc:creator>
    <dc:date>2012-02-16T19:24:36Z</dc:date>
    <item>
      <title>Validating web URLs in a database file</title>
      <link>https://community.esri.com/t5/python-questions/validating-web-urls-in-a-database-file/m-p/227165#M17622</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;We have high quality PDF maps for most of our Wildlife Areas.&amp;nbsp; The feature class we put out in our web applications contains a field with a hyper link to these PDFs.&amp;nbsp; Not all Wildlife Areas have a PDF map but I'd like to programmatically populate the field and then NULL out the field if there is no PDF map at that web location.&amp;nbsp; Does anyone know how to test the validity of a web URL in Python?&amp;nbsp;&amp;nbsp; Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Feb 2012 19:24:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/validating-web-urls-in-a-database-file/m-p/227165#M17622</guid>
      <dc:creator>RandyKreuziger</dc:creator>
      <dc:date>2012-02-16T19:24:36Z</dc:date>
    </item>
    <item>
      <title>Re: Validating web URLs in a database file</title>
      <link>https://community.esri.com/t5/python-questions/validating-web-urls-in-a-database-file/m-p/227166#M17623</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Im sure there are better ways to do this, but heres a quick and dirty way:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
import urllib2
try:
&amp;nbsp; urllib2.urlopen('http://hsfdsda.com')
except:
&amp;nbsp; print "didnt work"
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 11:03:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/validating-web-urls-in-a-database-file/m-p/227166#M17623</guid>
      <dc:creator>KevinHibma</dc:creator>
      <dc:date>2021-12-11T11:03:58Z</dc:date>
    </item>
  </channel>
</rss>

