Skip to content

Commit

Permalink
Update owasp_funding_yml_scraper.py
Browse files Browse the repository at this point in the history
  • Loading branch information
DonnieBLT authored Jun 5, 2024
1 parent 33953f8 commit 6ef9d94
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/scripts/owasp_funding_yml_scraper.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ def extract_github_links(url, project_name):
def check_funding_file(repo_name):
funding_url = f'https://raw.githubusercontent.com/{ORG_NAME}/{repo_name}/master/.github/FUNDING.yml'
response = requests.get(funding_url)
print(f"Checking funding URL: {funding_url} - Status Code: {response.status_code}")
if response.status_code == 200:
return funding_url
return None
Expand Down Expand Up @@ -68,6 +69,7 @@ def check_funding_file(repo_name):
'project_name': project_name,
'funding_url': funding_url
})
print(f"Added project: {project_name} with funding URL: {funding_url}")

output_file = 'project_repos_links.json'
with open(output_file, 'w') as f:
Expand Down

0 comments on commit 6ef9d94

Please sign in to comment.