From 10afc59b829daecfd7f731e6d8a1a9f0492f18c5 Mon Sep 17 00:00:00 2001 From: royalvedant Date: Mon, 26 Jan 2026 05:37:19 +0530 Subject: [PATCH] Fix licensedb URLs and start modernization cleanup --- src/scancode/api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/scancode/api.py b/src/scancode/api.py index 71382f4a6a..c81fc156d3 100644 --- a/src/scancode/api.py +++ b/src/scancode/api.py @@ -142,7 +142,7 @@ def get_urls(location, threshold=50, **kwargs): SPDX_LICENSE_URL = 'https://spdx.org/licenses/{}' DEJACODE_LICENSE_URL = 'https://enterprise.dejacode.com/urn/urn:dje:license:{}' SCANCODE_LICENSEDB_URL = 'https://scancode-licensedb.aboutcode.org/{}' -SCANCODE_DATA_BASE_URL = 'https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data' +SCANCODE_DATA_BASE_URL = 'https://raw.githubusercontent.com/nexB/scancode-toolkit/develop/src/licensedcode/data' SCANCODE_LICENSE_URL = f'{SCANCODE_DATA_BASE_URL}/licenses/{{}}.LICENSE' SCANCODE_RULE_URL = f'{SCANCODE_DATA_BASE_URL}/rules/{{}}'