Spaces:
Paused
Paused
Download Telegram_Job_Bot/extract.py from telegramjobupload/README: direct link, hf CLI and curl.
- Browser
- Download file 403 Bytes
-
https://huggingface.co/spaces/telegramjobupload/README/resolve/main/Telegram_Job_Bot/extract.py
- Command line
-
hf download hf://spaces/telegramjobupload/README/Telegram_Job_Bot/extract.py
-
curl -L -o extract.py https://huggingface.co/spaces/telegramjobupload/README/resolve/main/Telegram_Job_Bot/extract.py
403 Bytes
| with open('main.py', 'r', encoding='utf-8') as f: | |
| lines = f.readlines() | |
| start_idx = 2635 | |
| end_idx = 3266 | |
| html_lines = lines[start_idx:end_idx] | |
| html_lines[0] = html_lines[0].replace(' return f\"\"\"', '') | |
| html_lines[-1] = html_lines[-1].replace('\"\"\"\n', '\n') | |
| with open('templates/dashboard.html', 'w', encoding='utf-8') as f: | |
| f.writelines(html_lines) | |
| print('Extracted dashboard.html') | |