This commit is contained in:
yagudin 2021-05-31 22:33:53 +03:00
parent 949438203c
commit fb53c015f6

View File

@ -32,11 +32,16 @@ if __name__ == "__main__":
uid = st.number_input("What is your user ID?", min_value=1, value=28899) uid = st.number_input("What is your user ID?", min_value=1, value=28899)
uid = str(uid) uid = str(uid)
curl_value = "" curl_value = """curl 'https://www.gjopen.com/' \\
-H 'authority: www.gjopen.com' \\
-H '...: ...'"""
curl_command = st.text_area( curl_command = st.text_area(
"Ugh... Gimme your cURL info...", value=curl_value.strip() "Ugh... Gimme your cURL info...", value=curl_value
) )
curl_command = "".join(curl_command.split("\\\n"))
if curl_command != curl_value:
curl_content = uncurl.parse_context(curl_command) curl_content = uncurl.parse_context(curl_command)
headers, cookies = curl_content.headers, curl_content.cookies headers, cookies = curl_content.headers, curl_content.cookies