Buckets:
AnonymousSpottedToad/candidate_bucket / codebase /python /SHAdd0WTAka_Zen-Ai-Pentest /scripts /generate_qr_simple.py
| #!/usr/bin/env python3 | |
| """ | |
| Simple QR Code Generator - Compatible format | |
| """ | |
| import os | |
| import qrcode | |
| def create_qr(url, filename, output_dir="docs/qr_codes"): | |
| """Erstellt einen einfachen QR-Code""" | |
| os.makedirs(output_dir, exist_ok=True) | |
| qr = qrcode.QRCode( | |
| version=1, | |
| error_correction=qrcode.constants.ERROR_CORRECT_H, | |
| box_size=10, | |
| border=4, | |
| ) | |
| qr.add_data(url) | |
| qr.make(fit=True) | |
| # Erstelle Bild | |
| img = qr.make_image(fill_color="black", back_color="white") | |
| # Konvertiere zu RGB | |
| img = img.convert("RGB") | |
| # Speichern | |
| filepath = os.path.join(output_dir, filename) | |
| img.save(filepath, "PNG") | |
| print(f"[OK] {filepath}") | |
| return filepath | |
| def main(): | |
| print("=" * 60) | |
| print("QR Code Generator") | |
| print("=" * 60) | |
| links = [ | |
| ("https://discord.gg/zJZUJwK9AC", "discord_qr.png"), | |
| ("https://t.me/botfather", "telegram_botfather_qr.png"), | |
| ( | |
| "https://github.com/SHAdd0WTAka/Zen-Ai-Pentest/settings/environments", | |
| "github_env_qr.png", | |
| ), | |
| ( | |
| "https://github.com/SHAdd0WTAka/Zen-Ai-Pentest", | |
| "github_repo_qr.png", | |
| ), | |
| ( | |
| "https://github.com/SHAdd0WTAka/Zen-Ai-Pentest/actions", | |
| "github_actions_qr.png", | |
| ), | |
| ] | |
| for url, filename in links: | |
| create_qr(url, filename) | |
| print("=" * 60) | |
| print("Fertig!") | |
| if __name__ == "__main__": | |
| main() | |
Xet Storage Details
- Size:
- 1.49 kB
- Xet hash:
- 5d282d13d03e985e0fefcfadcd4b88c0d2788682477a31b51a1f9393d84b99f9
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.