Пример переменной с расписанием
This commit is contained in:
parent
f1e657d5b7
commit
a9f24607d4
39
main.py
39
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
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user