Spaces:
No application file
No application file
Download src/app.py from NIKOLAJ5313/rss-system: direct link, hf CLI and curl.
- Browser
- Download file 1.59 kB
-
https://huggingface.co/spaces/NIKOLAJ5313/rss-system/resolve/main/src/app.py
- Command line
-
hf download hf://spaces/NIKOLAJ5313/rss-system/src/app.py
-
curl -L -o app.py https://huggingface.co/spaces/NIKOLAJ5313/rss-system/resolve/main/src/app.py
1.59 kB
| ο»Ώ# ============================================================================ | |
| # βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ | |
| # β Π¦ΠΠ€Π ΠΠΠΠ― ΠΠ‘ΠΠΠΠΠΠΠ― β ΠΠΠΠΠΠΠ ΠΠΠΠΠ‘ΠΠΠΠ ΠΠΠΠ§ ΠΠΠ’ΠΠ₯ΠΠ β | |
| # β (ΠΏΠΎΠ·ΡΠ²Π½ΠΎΠΉ: ΠΠΠ’ΠΠΠ¬ΠΠ) β | |
| # βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ | |
| # ============================================================================ | |
| import os | |
| from pathlib import Path | |
| def main(): | |
| """Π’ΠΎΡΠΊΠ° Π²Ρ ΠΎΠ΄Π° Π΄Π»Ρ Hugging Face Spaces""" | |
| print("π Batenka RSS System starting...") | |
| # ΠΠΌΠΏΠΎΡΡ Π²ΡΠ΅Ρ ΠΌΠΎΠ΄ΡΠ»Π΅ΠΉ | |
| from core.self_heal import maintain | |
| from core.counterintel import log_event | |
| maintain() | |
| log_event('app_started', {'service': os.getenv('SERVICE_TYPE', 'single')}) | |
| # ΠΠ°ΠΏΡΡΠΊ ΠΏΠ°ΡΡΠ΅ΡΠΎΠ² | |
| from parsers import text_parser, video_parser, audio_parser | |
| text_parser.main() | |
| video_parser.main() | |
| audio_parser.main() | |
| # ΠΠ΅Π½Π΅ΡΠ°ΡΠΈΡ RSS | |
| from core.rss_generator import main as generate_feed | |
| generate_feed() | |
| print("β System ready") | |
| if __name__ == "__main__": | |
| main() | |