verbose logging

This commit is contained in:
Mo Langning
2023-11-26 22:02:29 +08:00
parent 723bb37b3a
commit af53b844b3
@@ -4,6 +4,8 @@
import requests,re import requests,re
print("[+] Readme stats updater")
REPOSITORY_API="https://api.github.com/repos/%s" REPOSITORY_API="https://api.github.com/repos/%s"
REPOSITORY="danielmiessler/SecLists" REPOSITORY="danielmiessler/SecLists"
REPOSITORY_COMMITS_API="https://api.github.com/repos/%s/commits" REPOSITORY_COMMITS_API="https://api.github.com/repos/%s/commits"
@@ -78,3 +80,5 @@ if re.match(DETAILS_ANCHOR_REGEX,readme_contents,flags=re.DOTALL):
readme_contents=re.sub(DETAILS_ANCHOR_REGEX,DETAIL_USER_NOTICE_STRING,readme_contents,flags=re.DOTALL) readme_contents=re.sub(DETAILS_ANCHOR_REGEX,DETAIL_USER_NOTICE_STRING,readme_contents,flags=re.DOTALL)
open("README.md","w").write(readme_contents) open("README.md","w").write(readme_contents)
print("[+] Wrote README.md!")