Skip to content

Commit

Permalink
Merge pull request #278 from NASA-IMPACT/fix_check_url
Browse files Browse the repository at this point in the history
Refactor URL extraction logic in url_validator.py
  • Loading branch information
rajeshpandey2053 authored Apr 24, 2024
2 parents ef3c2eb + 7bfce69 commit 246eb9a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pyQuARC/code/url_validator.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def status_code_from_request(url):
validity = True

# extract URLs from text
extractor = URLExtract()
extractor = URLExtract(cache_dir="/tmp")
urls = extractor.find_urls(text_with_urls)
urls.extend(UrlValidator._extract_http_texts(text_with_urls))

Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@ requests==2.24.0
setuptools==60.8.2
strict-rfc3339==0.7
tqdm==4.48.2
urlextract==1.0.0
urlextract==1.3.0
xmltodict==0.12.0

0 comments on commit 246eb9a

Please sign in to comment.