fixed email retrival and added restriction to api

This commit is contained in:
2025-08-17 21:52:45 +05:30
parent 1e69ced5da
commit be0aac52ee
2 changed files with 3 additions and 2 deletions

3
.gitignore vendored
View File

@@ -9,4 +9,5 @@ __pycache__/
credentials/ credentials/
credentials.json credentials.json
*.key *.key
emails.txt emails.txt
*.keys.txt

View File

@@ -24,7 +24,7 @@ def load_emails_from_file(filename):
print("Please create it and add one email address per line.") print("Please create it and add one email address per line.")
return [] return []
with open(filename, "r") as f: with open(filename, "r") as f:
return [line.strip() for line in f if line.strip()] return [line.strip() for line in f if line.strip() and not line.startswith("#")]
def main(): def main():
"""Main function to orchestrate API key creation.""" """Main function to orchestrate API key creation."""