internetarchive / iari

Import workflows for the Wikipedia Citations Database
GNU General Public License v3.0
11 stars 9 forks source link

Validators package cannot be installed with newest pip #888

Closed dpriskorn closed 1 year ago

dpriskorn commented 1 year ago

image

We should remove it and replace the url validation with the following:

from urllib.parse import urlparse

def is_url(url):
  try:
    result = urlparse(url)
    return all([result.scheme, result.netloc])
  except ValueError:
    return False
dpriskorn commented 1 year ago

on a second run it succeded. huh image