Skip to content

Commit

Permalink
Add not supported extensions
Browse files Browse the repository at this point in the history
Signed-off-by: Tushar Goel <tushar.goel.dav@gmail.com>
  • Loading branch information
TG1999 committed Aug 2, 2023
1 parent ce4e892 commit 5771cb2
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions packagedb/find_source_repo.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,23 @@ def get_data_from_url(
try:
if not url:
return
if url.startswith("https://github.com/assets"):
return
not_supported_extensions = [
".pdf",
".zip",
".woff2",
".jar",
".js",
".png",
".css",
".svg",
".jpg",
".tgz",
]
for extension in not_supported_extensions:
if url.endswith(extension):
return
if url in non_reachable_urls:
return
if url in CACHE:
Expand Down

0 comments on commit 5771cb2

Please sign in to comment.