diff --git a/main.py b/main.py index 5cae3f2..43a0a8f 100644 --- a/main.py +++ b/main.py @@ -8,6 +8,7 @@ from bs4 import BeautifulSoup import re +import requests html_sample = """ @@ -1594,4 +1595,10 @@ if __name__ == '__main__': post_data["&ctl00%24cphMain%24ctl08"] = -1 print(post_data) - # post_path = "https://guap.ru/rasp/?g=2" + 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) + + print( + post_result.text + )