Spaces:
Paused
Paused
Download Telegram_Job_Bot/fix_creds.py from telegramjobupload/README: direct link, hf CLI and curl.
- Browser
- Download file 720 Bytes
-
https://huggingface.co/spaces/telegramjobupload/README/resolve/main/Telegram_Job_Bot/fix_creds.py
- Command line
-
hf download hf://spaces/telegramjobupload/README/Telegram_Job_Bot/fix_creds.py
-
curl -L -o fix_creds.py https://huggingface.co/spaces/telegramjobupload/README/resolve/main/Telegram_Job_Bot/fix_creds.py
720 Bytes
| import re | |
| try: | |
| with open('instahyre_engine.py', 'r', encoding='utf-8') as f: | |
| content = f.read() | |
| old_cred = ''' if not email: | |
| email = os.getenv("INSTAHYRE_EMAIL", "gokuuchihatamil@gmail.com") | |
| if not password: | |
| password = os.getenv("INSTAHYRE_PASSWORD", "")''' | |
| new_cred = ''' if not email: | |
| email = "manojprofessional007@gmail.com" | |
| if not password: | |
| password = "oxgrxcwblaansfsw"''' | |
| content = content.replace(old_cred, new_cred) | |
| with open('instahyre_engine.py', 'w', encoding='utf-8') as f: | |
| f.write(content) | |
| print("Successfully hardcoded credentials in instahyre_engine.py") | |
| except Exception as e: | |
| print("Error:", e) | |