Skip to content

Commit

Permalink
Entertainment channels and minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
NyanNyanovich committed Mar 5, 2024
1 parent caf3c4b commit 182549c
Show file tree
Hide file tree
Showing 5 changed files with 141 additions and 12 deletions.
132 changes: 123 additions & 9 deletions channels.json
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,8 @@
"tech": "other"
},
"alias": "Пивоваров (Редакция)",
"issue": "main"
"issue": "main",
"disabled": true
},
{
"name": "stalin_gulag",
Expand Down Expand Up @@ -469,7 +470,8 @@
"name": "concertzaal",
"groups": {
"main": "purple",
"tech": "other"
"tech": "other",
"entertainment": "entertainment"
},
"alias": "Concertzaal",
"issue": "main",
Expand Down Expand Up @@ -1050,7 +1052,8 @@
{
"name": "pravdadirty",
"groups": {
"main": "red"
"main": "red",
"entertainment": "entertainment"
},
"alias": "ВПШ",
"issue": "main"
Expand Down Expand Up @@ -1108,7 +1111,8 @@
"alias": "Starhit.ru",
"issue": "main",
"groups": {
"main": "red"
"main": "red",
"entertainment": "entertainment"
}
},
{
Expand Down Expand Up @@ -1328,12 +1332,119 @@
},
{
"name": "pyaroshnaya",
"alias": "Пиарошная",
"issue": "tech",
"groups": {
"tech": "tech"
},
"alias": "Пиарошная",
"issue": "tech",
"recrawl_time": 600
},
{
"name": "kinopoisk_soon",
"alias": "Кинопоиск",
"issue": "entertainment",
"groups": {
"entertainment": "entertainment"
},
"recrawl_time": 600
},
{
"name": "cherevatstreams",
"alias": "CherevatBlog",
"issue": "entertainment",
"groups": {
"entertainment": "entertainment"
},
"recrawl_time": 600
},
{
"name": "cronenberg1664",
"alias": "Кроненберг нефильтрованный",
"issue": "entertainment",
"groups": {
"entertainment": "entertainment"
},
"recrawl_time": 600
},
{
"name": "filmru",
"alias": "Film.ru",
"issue": "entertainment",
"groups": {
"entertainment": "entertainment"
},
"recrawl_time": 600
},
{
"name": "filmzru",
"alias": "FILMZ.RU: Настоящее кино",
"issue": "entertainment",
"groups": {
"entertainment": "entertainment"
},
"recrawl_time": 600
},
{
"name": "rhsnews",
"alias": "RHS News",
"issue": "entertainment",
"groups": {
"entertainment": "entertainment"
},
"recrawl_time": 600
},
{
"name": "kosti",
"alias": "KOSTI",
"issue": "entertainment",
"groups": {
"entertainment": "entertainment"
},
"recrawl_time": 600
},
{
"name": "badmads",
"alias": "MADS",
"issue": "entertainment",
"groups": {
"entertainment": "entertainment"
},
"recrawl_time": 600
},
{
"name": "superru",
"alias": "Super.ru",
"issue": "entertainment",
"groups": {
"entertainment": "entertainment"
},
"recrawl_time": 600
},
{
"name": "ebobo_rus",
"alias": "ebobo",
"issue": "entertainment",
"groups": {
"entertainment": "entertainment"
},
"recrawl_time": 600
},
{
"name": "novostishowbiz",
"alias": "Новости Шоу-Бизнеса",
"issue": "entertainment",
"groups": {
"entertainment": "entertainment"
},
"recrawl_time": 600
},
{
"name": "kontext_channel",
"alias": "Контекст",
"issue": "main",
"groups": {
"main": "purple"
}
}
],
"emojis": {
Expand All @@ -1343,7 +1454,8 @@
"tech": "💻",
"economy":"💰",
"other": "📰",
"moscow": "🌆"
"moscow": "🌆",
"entertainment": "🎭"
},
"colors": {
"red": "🟥",
Expand All @@ -1352,12 +1464,14 @@
"tech": "",
"economy": "🟨",
"other": "",
"moscow": ""
"moscow": "",
"entertainment": "🟩"
},
"default_groups": {
"main": "purple",
"tech": "other",
"economy": "other",
"moscow": "other"
"moscow": "other",
"entertainment": "other"
}
}
9 changes: 8 additions & 1 deletion configs/annotator_config.json
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,14 @@
"|||",
"| | |",
"Подпишись на",
"Подпишись на Москва 24"
"Подпишись на Москва 24",
"Telegram СОЛОВЬЁВ!",
"СОЛОВЬЁВ!",
"Подписаться |",
"«Кинопоиск | Новости»",
"Читайте подробнее на сайте.",
"По этой ссылке можно прочитать эту инструкцию прямо в телеграме.",
"В августе 2023 года мы рассказывали, что делать, если ваш способ обхода блокировок больше не работает."
],
"skip_substrings": [
"Главное ",
Expand Down
8 changes: 8 additions & 0 deletions configs/ranker_config.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,14 @@
"higher_views_percentile": 30,
"higher_trigger_age_minutes": 0
},
{
"issue_name": "entertainment",
"min_channels": 3,
"max_age_minutes": 360,
"views_percentile": 30,
"higher_views_percentile": 30,
"higher_trigger_age_minutes": 0
},
{
"issue_name": "moscow",
"min_channels": 4,
Expand Down
2 changes: 1 addition & 1 deletion nyan/prompts/topics.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* Выбери 3 самых важных широких темы, на которые данные новости повлияли наиболее сильно.
* Для каждой темы выведи не более 6 и не менее 2 самых важных новостей, несколько уникальных эмодзи, обозначающие тему, и название темы. Если в теме только одна новость, не используй её.
* Для каждой новости сделай заголовок. В нём должно быть не более 12 слов и не больше 90 символов. В заголовке должно быть сказумое-глагол, но оно не должно быть первым словом.
* Для каждой новости выведи сказуемое (обычно глагол). Не меняй слова, сказумое должно быть подстрокой заголовка.
* Для каждой новости выведи сказуемое (обычно глагол). Не используй другие слова, сказумое строго должно быть подстрокой заголовка.
* Выведи результат списком в JSON аналогично примеру:
```json
{
Expand Down
2 changes: 1 addition & 1 deletion nyan/topics.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ def main(
parser.add_argument("--issue-name", type=str, default="main")
parser.add_argument("--prompt-path", type=str, default="nyan/prompts/topics.txt")
parser.add_argument("--template-path", type=str, default="nyan/templates/topics.html")
parser.add_argument("--model-name", type=str, default="gpt-4-1106-preview")
parser.add_argument("--model-name", type=str, default="gpt-4-turbo-preview")
parser.add_argument("--auto", default=False, action="store_true")
args = parser.parse_args()
main(**vars(args))

0 comments on commit 182549c

Please sign in to comment.