Парсинг списка групп, фикс

This commit is contained in:
lulzette 2023-05-13 13:26:39 +03:00
parent a8580c67e5
commit ef8b6788b9

View File

@ -1570,8 +1570,8 @@ if __name__ == '__main__':
# print(group.contents, group.get('value')) # print(group.contents, group.get('value'))
if group.get('value') != "-1": if group.get('value') != "-1":
groups.append({ groups.append({
"name": group.contents, "name": group.contents[0],
"html_value": group.get('value') "value": group.get('value')
}) })
# print(group_html_block) # print(group_html_block)
# print(group_html_block.parent) # print(group_html_block.parent)
@ -1594,5 +1594,4 @@ if __name__ == '__main__':
post_data["&ctl00%24cphMain%24ctl08"] = -1 post_data["&ctl00%24cphMain%24ctl08"] = -1
print(post_data) print(post_data)
# # post_path = "https://guap.ru/rasp/?g=2"
# <form action="./?g=2" id="Form1" method="post">