Парсинг списка групп, фикс
This commit is contained in:
parent
a8580c67e5
commit
ef8b6788b9
7
main.py
7
main.py
@ -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">
|
|
||||||
|
Loading…
Reference in New Issue
Block a user