Существует шедевральный метод, который возвращает огромное количество полезной информации о теме Также существует раздел розыгрышей, где полезной информации еще больше, но ее к сожалению метод не возвращает Картинка с невозвращаемой полезной информацией Предлагаю сделать так, чтобы get threads/{thread_id} возвращал в случае с розыгрышами еще и инфу о них. Что-то типо такого { "prize_data_money": int, "prize_data_upgrade": str, "count_winners": int, "prize_type": str, "participants": int "time_to_end": int or float, "needed_members": int, "contest_type": str, "require_like_count": int, "require_total_like_count": int, "can_join": bool, "participating": bool, "participate_limit": bool, "participate_count": int } JS { "prize_data_money": int, "prize_data_upgrade": str, "count_winners": int, "prize_type": str, "participants": int "time_to_end": int or float, "needed_members": int, "contest_type": str, "require_like_count": int, "require_total_like_count": int, "can_join": bool, "participating": bool, "participate_limit": bool, "participate_count": int } Пример ответа от сервера До { "thread": { "thread_id": 5450947, "forum_id": 766, "thread_title": "Бад", "thread_view_count": 147, "creator_user_id": 205618, "creator_username": "Morj", "thread_create_date": 1686813416, "thread_update_date": 1686813455, "user_is_ignored": false, "thread_post_count": 1, "thread_is_published": true, "thread_is_deleted": false, "thread_is_sticky": false, "thread_is_followed": false, "first_post": { "post_id": 39377890, "thread_id": 5450947, "poster_user_id": 205618, "poster_username": "Morj", "post_create_date": 1686813416, "post_body": ":kitwtf:", "post_body_html": "<span class=\"smilie\" data-image-url=\"/styles/default/xenforo/smilies/epxrySu.png\" data-title=\"kitwtf\">:kitwtf:</span>", "post_body_plain_text": ":kitwtf:", "signature": "", "signature_html": "", "signature_plain_text": "", "post_like_count": 64, "post_attachment_count": 0, "like_users": [ { "user_id": 216235, "username": "konaxx", "display_style_group_id": 265, "is_banned": 0, "uniq_username_css": "background: linear-gradient(to right, #00A181 0%, #1CFFBB 50%, #099654 100%);\n-webkit-background-clip: text;\n-webkit-text-fill-color: transparent;text-shadow: 0 0 1px #ffffff, 0 0 2px #ffffff, 0 0 3px #ffffff, 0 0 4px #1CFFBB, 0 0 5px #1CFFBB, 0 0 5px #ff00de, 0 0 5px #1CFFBB, 0 0 5px #ff00de;\n-webkit-background-clip:text" }, { "user_id": 176690, "username": "Ворон", "display_style_group_id": 60, "is_banned": 0, "uniq_username_css": "" }, { "user_id": 666857, "username": "syntax", "display_style_group_id": 265, "is_banned": 0, "uniq_username_css": "color:pink;text-shadow: 0px 2px 1px #9704FC, 0px -1px 1px #9704FC, 2px 0px 1px #9704FC,0px 0px 5px rgb(190, 64, 197),0px 0px 5px rgb(209, 12, 232),0px 0px 5px rgb(144, 67, 242), 1px 2px 0px #C92CC7, 2px 3px 0px #C92CC7, 0px 3px 5px #C32DC0, 0px -3px 5px #912DDA, 3px 0px 5px #8C32F8, -3px 0px 5px #9040F8;\n-webkit-background-clip:text" }, { "user_id": 144679, "username": "DeWolff", "display_style_group_id": 353, "is_banned": 0, "uniq_username_css": "background: linear-gradient(100.4deg, #FF5EBE -23.67%, #FF3CB0 22.1%, #FF5EBE 43.66%, #FF84CD 67.29%, #FF5FAF 87.07%, #FF2E86 104.69%);\n-webkit-background-clip: text;\n-webkit-text-fill-color: transparent;\ntext-shadow: 0px 3px 9px rgba(255, 76, 159, 0.29), 1px 1px 9px rgba(255, 131, 197, 0.29), -4px -3px 9px rgba(255, 30, 164, 0.31);" }, { "user_id": 4025672, "username": "Зеленский", "display_style_group_id": 23, "is_banned": 0, "uniq_username_css": "" } ], "user_is_ignored": false, "post_is_published": true, "post_is_deleted": false, "post_update_date": 1686813416, "post_is_first_post": true, "links": { "permalink": "https://zelenka.guru/posts/39377890/", "detail": "https://api.zelenka.guru/posts/39377890/", "thread": "https://api.zelenka.guru/threads/5450947/", "poster": "https://api.zelenka.guru/users/morj/", "likes": "https://api.zelenka.guru/posts/39377890/likes", "report": "https://api.zelenka.guru/posts/39377890/report", "attachments": "https://api.zelenka.guru/posts/39377890/attachments", "poster_avatar": "https://zelenka.guru/data/avatars/m/205/205618.jpg?1685716940" }, "permissions": { "view": true, "edit": false, "delete": false, "reply": false, "like": true, "report": true, "upload_attachment": false } }, "thread_prefixes": [ { "prefix_id": 130, "prefix_title": "Быстрый" } ], "thread_tags": [], "links": { "permalink": "https://zelenka.guru/threads/5450947/", "detail": "https://api.zelenka.guru/threads/5450947/", "followers": "https://api.zelenka.guru/threads/5450947/followers", "forum": "https://api.zelenka.guru/forums/766/", "posts": "https://api.zelenka.guru/posts/?thread_id=5450947", "first_poster": "https://api.zelenka.guru/users/morj/", "first_poster_avatar": "https://zelenka.guru/data/avatars/m/205/205618.jpg?1685716940", "first_post": "https://api.zelenka.guru/posts/39377890/" }, "permissions": { "view": true, "delete": false, "follow": true, "post": false, "upload_attachment": false, "edit": false } }, "system_info": { "visitor_id": 2410024, "time": 1686814635 } } JSON { "thread": { "thread_id": 5450947, "forum_id": 766, "thread_title": "Бад", "thread_view_count": 147, "creator_user_id": 205618, "creator_username": "Morj", "thread_create_date": 1686813416, "thread_update_date": 1686813455, "user_is_ignored": false, "thread_post_count": 1, "thread_is_published": true, "thread_is_deleted": false, "thread_is_sticky": false, "thread_is_followed": false, "first_post": { "post_id": 39377890, "thread_id": 5450947, "poster_user_id": 205618, "poster_username": "Morj", "post_create_date": 1686813416, "post_body": ":kitwtf:", "post_body_html": "<span class=\"smilie\" data-image-url=\"/styles/default/xenforo/smilies/epxrySu.png\" data-title=\"kitwtf\">:kitwtf:</span>", "post_body_plain_text": ":kitwtf:", "signature": "", "signature_html": "", "signature_plain_text": "", "post_like_count": 64, "post_attachment_count": 0, "like_users": [ { "user_id": 216235, "username": "konaxx", "display_style_group_id": 265, "is_banned": 0, "uniq_username_css": "background: linear-gradient(to right, #00A181 0%, #1CFFBB 50%, #099654 100%);\n-webkit-background-clip: text;\n-webkit-text-fill-color: transparent;text-shadow: 0 0 1px #ffffff, 0 0 2px #ffffff, 0 0 3px #ffffff, 0 0 4px #1CFFBB, 0 0 5px #1CFFBB, 0 0 5px #ff00de, 0 0 5px #1CFFBB, 0 0 5px #ff00de;\n-webkit-background-clip:text" }, { "user_id": 176690, "username": "Ворон", "display_style_group_id": 60, "is_banned": 0, "uniq_username_css": "" }, { "user_id": 666857, "username": "syntax", "display_style_group_id": 265, "is_banned": 0, "uniq_username_css": "color:pink;text-shadow: 0px 2px 1px #9704FC, 0px -1px 1px #9704FC, 2px 0px 1px #9704FC,0px 0px 5px rgb(190, 64, 197),0px 0px 5px rgb(209, 12, 232),0px 0px 5px rgb(144, 67, 242), 1px 2px 0px #C92CC7, 2px 3px 0px #C92CC7, 0px 3px 5px #C32DC0, 0px -3px 5px #912DDA, 3px 0px 5px #8C32F8, -3px 0px 5px #9040F8;\n-webkit-background-clip:text" }, { "user_id": 144679, "username": "DeWolff", "display_style_group_id": 353, "is_banned": 0, "uniq_username_css": "background: linear-gradient(100.4deg, #FF5EBE -23.67%, #FF3CB0 22.1%, #FF5EBE 43.66%, #FF84CD 67.29%, #FF5FAF 87.07%, #FF2E86 104.69%);\n-webkit-background-clip: text;\n-webkit-text-fill-color: transparent;\ntext-shadow: 0px 3px 9px rgba(255, 76, 159, 0.29), 1px 1px 9px rgba(255, 131, 197, 0.29), -4px -3px 9px rgba(255, 30, 164, 0.31);" }, { "user_id": 4025672, "username": "Зеленский", "display_style_group_id": 23, "is_banned": 0, "uniq_username_css": "" } ], "user_is_ignored": false, "post_is_published": true, "post_is_deleted": false, "post_update_date": 1686813416, "post_is_first_post": true, "links": { "permalink": "https://zelenka.guru/posts/39377890/", "detail": "https://api.zelenka.guru/posts/39377890/", "thread": "https://api.zelenka.guru/threads/5450947/", "poster": "https://api.zelenka.guru/users/morj/", "likes": "https://api.zelenka.guru/posts/39377890/likes", "report": "https://api.zelenka.guru/posts/39377890/report", "attachments": "https://api.zelenka.guru/posts/39377890/attachments", "poster_avatar": "https://zelenka.guru/data/avatars/m/205/205618.jpg?1685716940" }, "permissions": { "view": true, "edit": false, "delete": false, "reply": false, "like": true, "report": true, "upload_attachment": false } }, "thread_prefixes": [ { "prefix_id": 130, "prefix_title": "Быстрый" } ], "thread_tags": [], "links": { "permalink": "https://zelenka.guru/threads/5450947/", "detail": "https://api.zelenka.guru/threads/5450947/", "followers": "https://api.zelenka.guru/threads/5450947/followers", "forum": "https://api.zelenka.guru/forums/766/", "posts": "https://api.zelenka.guru/posts/?thread_id=5450947", "first_poster": "https://api.zelenka.guru/users/morj/", "first_poster_avatar": "https://zelenka.guru/data/avatars/m/205/205618.jpg?1685716940", "first_post": "https://api.zelenka.guru/posts/39377890/" }, "permissions": { "view": true, "delete": false, "follow": true, "post": false, "upload_attachment": false, "edit": false } }, "system_info": { "visitor_id": 2410024, "time": 1686814635 } } После { "thread": { "thread_id": 5450947, "forum_id": 766, "thread_title": "Бад", "thread_view_count": 147, "creator_user_id": 205618, "creator_username": "Morj", "thread_create_date": 1686813416, "thread_update_date": 1686813455, "user_is_ignored": false, "thread_post_count": 1, "thread_is_published": true, "thread_is_deleted": false, "thread_is_sticky": false, "thread_is_followed": false, "contest_data": { "prize_data_money": 500, "count_winners": 1, "prize_type": "money", "participants": 869, "time_to_end": 3600, "contest_type": "by_finish_date", "require_like_count": 1, "require_total_like_count": 1, "can_join": false, "participating": true, "participate_limit": false, "participate_count": 6566 }, "first_post": { "post_id": 39377890, "thread_id": 5450947, "poster_user_id": 205618, "poster_username": "Morj", "post_create_date": 1686813416, "post_body": ":kitwtf:", "post_body_html": "<span class=\"smilie\" data-image-url=\"/styles/default/xenforo/smilies/epxrySu.png\" data-title=\"kitwtf\">:kitwtf:</span>", "post_body_plain_text": ":kitwtf:", "signature": "", "signature_html": "", "signature_plain_text": "", "post_like_count": 64, "post_attachment_count": 0, "like_users": [ { "user_id": 216235, "username": "konaxx", "display_style_group_id": 265, "is_banned": 0, "uniq_username_css": "background: linear-gradient(to right, #00A181 0%, #1CFFBB 50%, #099654 100%);\n-webkit-background-clip: text;\n-webkit-text-fill-color: transparent;text-shadow: 0 0 1px #ffffff, 0 0 2px #ffffff, 0 0 3px #ffffff, 0 0 4px #1CFFBB, 0 0 5px #1CFFBB, 0 0 5px #ff00de, 0 0 5px #1CFFBB, 0 0 5px #ff00de;\n-webkit-background-clip:text" }, { "user_id": 176690, "username": "Ворон", "display_style_group_id": 60, "is_banned": 0, "uniq_username_css": "" }, { "user_id": 666857, "username": "syntax", "display_style_group_id": 265, "is_banned": 0, "uniq_username_css": "color:pink;text-shadow: 0px 2px 1px #9704FC, 0px -1px 1px #9704FC, 2px 0px 1px #9704FC,0px 0px 5px rgb(190, 64, 197),0px 0px 5px rgb(209, 12, 232),0px 0px 5px rgb(144, 67, 242), 1px 2px 0px #C92CC7, 2px 3px 0px #C92CC7, 0px 3px 5px #C32DC0, 0px -3px 5px #912DDA, 3px 0px 5px #8C32F8, -3px 0px 5px #9040F8;\n-webkit-background-clip:text" }, { "user_id": 144679, "username": "DeWolff", "display_style_group_id": 353, "is_banned": 0, "uniq_username_css": "background: linear-gradient(100.4deg, #FF5EBE -23.67%, #FF3CB0 22.1%, #FF5EBE 43.66%, #FF84CD 67.29%, #FF5FAF 87.07%, #FF2E86 104.69%);\n-webkit-background-clip: text;\n-webkit-text-fill-color: transparent;\ntext-shadow: 0px 3px 9px rgba(255, 76, 159, 0.29), 1px 1px 9px rgba(255, 131, 197, 0.29), -4px -3px 9px rgba(255, 30, 164, 0.31);" }, { "user_id": 4025672, "username": "Зеленский", "display_style_group_id": 23, "is_banned": 0, "uniq_username_css": "" } ], "user_is_ignored": false, "post_is_published": true, "post_is_deleted": false, "post_update_date": 1686813416, "post_is_first_post": true, "links": { "permalink": "https://zelenka.guru/posts/39377890/", "detail": "https://api.zelenka.guru/posts/39377890/", "thread": "https://api.zelenka.guru/threads/5450947/", "poster": "https://api.zelenka.guru/users/morj/", "likes": "https://api.zelenka.guru/posts/39377890/likes", "report": "https://api.zelenka.guru/posts/39377890/report", "attachments": "https://api.zelenka.guru/posts/39377890/attachments", "poster_avatar": "https://zelenka.guru/data/avatars/m/205/205618.jpg?1685716940" }, "permissions": { "view": true, "edit": false, "delete": false, "reply": false, "like": true, "report": true, "upload_attachment": false } }, "thread_prefixes": [ { "prefix_id": 130, "prefix_title": "Быстрый" } ], "thread_tags": [], "links": { "permalink": "https://zelenka.guru/threads/5450947/", "detail": "https://api.zelenka.guru/threads/5450947/", "followers": "https://api.zelenka.guru/threads/5450947/followers", "forum": "https://api.zelenka.guru/forums/766/", "posts": "https://api.zelenka.guru/posts/?thread_id=5450947", "first_poster": "https://api.zelenka.guru/users/morj/", "first_poster_avatar": "https://zelenka.guru/data/avatars/m/205/205618.jpg?1685716940", "first_post": "https://api.zelenka.guru/posts/39377890/" }, "permissions": { "view": true, "delete": false, "follow": true, "post": false, "upload_attachment": false, "edit": false } }, "system_info": { "visitor_id": 2410024, "time": 1686814635 } } JSON { "thread": { "thread_id": 5450947, "forum_id": 766, "thread_title": "Бад", "thread_view_count": 147, "creator_user_id": 205618, "creator_username": "Morj", "thread_create_date": 1686813416, "thread_update_date": 1686813455, "user_is_ignored": false, "thread_post_count": 1, "thread_is_published": true, "thread_is_deleted": false, "thread_is_sticky": false, "thread_is_followed": false, "contest_data": { "prize_data_money": 500, "count_winners": 1, "prize_type": "money", "participants": 869, "time_to_end": 3600, "contest_type": "by_finish_date", "require_like_count": 1, "require_total_like_count": 1, "can_join": false, "participating": true, "participate_limit": false, "participate_count": 6566 }, "first_post": { "post_id": 39377890, "thread_id": 5450947, "poster_user_id": 205618, "poster_username": "Morj", "post_create_date": 1686813416, "post_body": ":kitwtf:", "post_body_html": "<span class=\"smilie\" data-image-url=\"/styles/default/xenforo/smilies/epxrySu.png\" data-title=\"kitwtf\">:kitwtf:</span>", "post_body_plain_text": ":kitwtf:", "signature": "", "signature_html": "", "signature_plain_text": "", "post_like_count": 64, "post_attachment_count": 0, "like_users": [ { "user_id": 216235, "username": "konaxx", "display_style_group_id": 265, "is_banned": 0, "uniq_username_css": "background: linear-gradient(to right, #00A181 0%, #1CFFBB 50%, #099654 100%);\n-webkit-background-clip: text;\n-webkit-text-fill-color: transparent;text-shadow: 0 0 1px #ffffff, 0 0 2px #ffffff, 0 0 3px #ffffff, 0 0 4px #1CFFBB, 0 0 5px #1CFFBB, 0 0 5px #ff00de, 0 0 5px #1CFFBB, 0 0 5px #ff00de;\n-webkit-background-clip:text" }, { "user_id": 176690, "username": "Ворон", "display_style_group_id": 60, "is_banned": 0, "uniq_username_css": "" }, { "user_id": 666857, "username": "syntax", "display_style_group_id": 265, "is_banned": 0, "uniq_username_css": "color:pink;text-shadow: 0px 2px 1px #9704FC, 0px -1px 1px #9704FC, 2px 0px 1px #9704FC,0px 0px 5px rgb(190, 64, 197),0px 0px 5px rgb(209, 12, 232),0px 0px 5px rgb(144, 67, 242), 1px 2px 0px #C92CC7, 2px 3px 0px #C92CC7, 0px 3px 5px #C32DC0, 0px -3px 5px #912DDA, 3px 0px 5px #8C32F8, -3px 0px 5px #9040F8;\n-webkit-background-clip:text" }, { "user_id": 144679, "username": "DeWolff", "display_style_group_id": 353, "is_banned": 0, "uniq_username_css": "background: linear-gradient(100.4deg, #FF5EBE -23.67%, #FF3CB0 22.1%, #FF5EBE 43.66%, #FF84CD 67.29%, #FF5FAF 87.07%, #FF2E86 104.69%);\n-webkit-background-clip: text;\n-webkit-text-fill-color: transparent;\ntext-shadow: 0px 3px 9px rgba(255, 76, 159, 0.29), 1px 1px 9px rgba(255, 131, 197, 0.29), -4px -3px 9px rgba(255, 30, 164, 0.31);" }, { "user_id": 4025672, "username": "Зеленский", "display_style_group_id": 23, "is_banned": 0, "uniq_username_css": "" } ], "user_is_ignored": false, "post_is_published": true, "post_is_deleted": false, "post_update_date": 1686813416, "post_is_first_post": true, "links": { "permalink": "https://zelenka.guru/posts/39377890/", "detail": "https://api.zelenka.guru/posts/39377890/", "thread": "https://api.zelenka.guru/threads/5450947/", "poster": "https://api.zelenka.guru/users/morj/", "likes": "https://api.zelenka.guru/posts/39377890/likes", "report": "https://api.zelenka.guru/posts/39377890/report", "attachments": "https://api.zelenka.guru/posts/39377890/attachments", "poster_avatar": "https://zelenka.guru/data/avatars/m/205/205618.jpg?1685716940" }, "permissions": { "view": true, "edit": false, "delete": false, "reply": false, "like": true, "report": true, "upload_attachment": false } }, "thread_prefixes": [ { "prefix_id": 130, "prefix_title": "Быстрый" } ], "thread_tags": [], "links": { "permalink": "https://zelenka.guru/threads/5450947/", "detail": "https://api.zelenka.guru/threads/5450947/", "followers": "https://api.zelenka.guru/threads/5450947/followers", "forum": "https://api.zelenka.guru/forums/766/", "posts": "https://api.zelenka.guru/posts/?thread_id=5450947", "first_poster": "https://api.zelenka.guru/users/morj/", "first_poster_avatar": "https://zelenka.guru/data/avatars/m/205/205618.jpg?1685716940", "first_post": "https://api.zelenka.guru/posts/39377890/" }, "permissions": { "view": true, "delete": false, "follow": true, "post": false, "upload_attachment": false, "edit": false } }, "system_info": { "visitor_id": 2410024, "time": 1686814635 } } Объяснение самого жсона { "prize_data_money": prize_data_money, # How much money will each winner receive. "prize_data_upgrade": prize_data_upgrade, # Which upgrade will each winner receive. "count_winners": count_winners, # Winner count (prize count). The maximum value is 100. "prize_type": prize_type, # Prize type. Can be [money, upgrades]. "participants": participants, # Participants count "time_to_end":time_to_end, # Time until contest end "needed_members": needed_members, # Max member count. Required if contest_type is by_needed_members. "contest_type": contest_type, # Contest type. Can be [by_finish_date, by_needed_members] "require_like_count": require_like_count, # Sympathies for this week. "require_total_like_count": require_total_like_count, # Symapthies for all time. "can_join":can_join, # Can join contest or not "participating": participating # Already participating or not "participate_limit":participate_limit, # Has participating limit or not "participate_count":participate_count # How much you can participate until you get participate limit } JSON { "prize_data_money": prize_data_money, # How much money will each winner receive. "prize_data_upgrade": prize_data_upgrade, # Which upgrade will each winner receive. "count_winners": count_winners, # Winner count (prize count). The maximum value is 100. "prize_type": prize_type, # Prize type. Can be [money, upgrades]. "participants": participants, # Participants count "time_to_end":time_to_end, # Time until contest end "needed_members": needed_members, # Max member count. Required if contest_type is by_needed_members. "contest_type": contest_type, # Contest type. Can be [by_finish_date, by_needed_members] "require_like_count": require_like_count, # Sympathies for this week. "require_total_like_count": require_total_like_count, # Symapthies for all time. "can_join":can_join, # Can join contest or not "participating": participating # Already participating or not "participate_limit":participate_limit, # Has participating limit or not "participate_count":participate_count # How much you can participate until you get participate limit } Добавили ау, так почему бы не упростить жизнь разрабам? Мою последнюю прогу для форума мне пришлось писать на вебдрайвере, а это нагружает сервер явно сильнее чем 1 запрос, да и по времени даже с учетом 3-секундной задержки это занимает больше
ты случайно rsa ключ для доступа к серваку с которого идет управление моей микроволновкой не получил? Хакер
MeloniuM, Текущее время - дата создания + время до завершения. Если юзаешь питон, то можешь парсить страницу, получать строку и с помощью datetime в unix переводить data-time - unix создание data-diff - сколько прошло с момента создания Потом время до окончания парсишь