diff --git a/main.py b/main.py index 43a0a8f..be4efd8 100644 --- a/main.py +++ b/main.py @@ -1597,8 +1597,39 @@ if __name__ == '__main__': post_headers = {"Content-Type": "application/x-www-form-urlencoded"} post_url = "https://guap.ru/rasp/?g=2" - post_result = requests.post(post_url, data=post_data, headers=post_headers) + # post_result = requests.post(post_url, data=post_data, headers=post_headers) + + post_result = html_sample + + # Парсим полученные данные + + soup_result = BeautifulSoup(post_result, 'html.parser') + + result_html = soup_result.find('div', {'class', 'result'}) + + # print(result_html.prettify()) + + rasp_summary = list() + # Пример rasp_summary + # ( + # { + # "date": "понедельник", + # "value": ( + # { + # "time": "1 пара (9:30–11:00)", + # "type": "ПР", + # "name": "– Прикладная физическая культура (элективный модуль)", + # "profs": ( + # "Алексеева С.В. - старший преподаватель" + # ), + # "groups": ( + # 1011, + # 1012 + # ), + # "place": "– Б.Морская 67, ауд. спортзал*", + # "up_or_down": None + # } + # ) + # } + # ) - print( - post_result.text - )