Skip to content

Commit

Permalink
update script
Browse files Browse the repository at this point in the history
  • Loading branch information
NotPrab committed Feb 1, 2025
1 parent 14030ff commit f730c64
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions scrape_obfuscators.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,18 @@
# scrape_obfuscators.py
import requests
import os

# Search GitHub API for ".NET obfuscator"
response = requests.get("https://api.github.com/search/repositories?q=.NET+obfuscator")
new_tools = [repo["html_url"] for repo in response.json()["items"]]

if new_tools:
# Write new tools to a markdown file
with open("new_obfuscators.md", "w") as f:
f.write("## New Tools Found\n")
f.write("\n".join([f"- {url}" for url in new_tools]))
print(f"::set-output name=new_entries::true") # Set output for GitHub Actions

# Set output using environment files (new method)
with open(os.environ['GITHUB_OUTPUT'], 'a') as f:
f.write(f"new_entries=true\n")
else:
print("No new tools found")

0 comments on commit f730c64

Please sign in to comment.