* Created first dev version of Telegram channels parser * Created endpoint for get Telegram Channel RSS * Added *.session and venv/ in .gitignore * Added dependency telethon * Added script for init Telethon * Removed unnecessary script parse.py * Added possibility for dynamic generate RSS feeds from Telegram channel * Deleted saving Telegram messages in database * Minor refactor Created separated files: parsers.py and utils.py * Enhanced text parser: parse title and description if can * Added attachment parsers: video, photo, voice and file parsers * Added possibility for merge grouped messages into one item * Renamed url for parse Telegram channel from "rss/telegram/<str:channel>" to "parsing/telegram/<str:channel>/" * Format code with black * Refactor: created package parsing.telegram and rename utils to models * Added Makefile target telegram
21 lines
741 B
Python
21 lines
741 B
Python
from django.urls import path
|
|
|
|
from auth.views import login, logout, club_callback
|
|
from boards.views import index, board, privacy_policy, what, export
|
|
from parsing.views import TelegramChannelFeed
|
|
|
|
urlpatterns = [
|
|
path("", index, name="index"),
|
|
path("what/", what, name="what"),
|
|
|
|
path("docs/privacy_policy/", privacy_policy, name="privacy_policy"),
|
|
|
|
path("auth/login/", login, name="login"),
|
|
path("auth/club_callback/", club_callback, name="club_callback"),
|
|
path("auth/logout/", logout, name="logout"),
|
|
|
|
path("<slug:board_slug>/", board, name="board"),
|
|
path("<slug:board_slug>/export/", export, name="export"),
|
|
path("parsing/telegram/<str:channel>/", TelegramChannelFeed(), name="telegram_channel_feed")
|
|
]
|