1
I’m trying to submit a form on the website https://www.loskatchorros.com.br/ucp/login.php ,but I’ve searched several ways here on stackoverflow how to submit a form, and found no way to solve this problem.
This is an example of code I picked up here on the forum and it didn’t work.
import requests
headers = {'User-Agent': 'Mozilla/5.0'}
payload = {'login':'*******','senha':'******'}
session = requests.Session()
r = session.post('https://www.loskatchorros.com.br/ucp/login.php',headers=headers,data=payload)
When placing the line:
print (r.text)
The program returns the same source code as the page https://www.loskatchorros.com.br/ucp/login.php, This gives to understand that the form was not successfully submitted, and I wanted to know what I am doing wrong.
If you need real login and password ask me to send it without any problem
By providing your credentials here, you are very likely to delete your account. Try using Selenium in these redirect cases. It seems to me he’s trying to open a window with cloudfire.
– Franklin Timóteo