Задача:
Залогиниться на портале 1С (https://portal.1c.ru/) для автоматизации скачивания релизов, патчей и т.д. После непродолжительного гугления, получилось вот что:
######## Начало
from bs4 import BeautifulSoup
import requests
url = "https://login.1c.ru/login"
session = requests.Session()
payload = {
"username": "логин",.
"password": "пароль"
}
s = session.post(url, data=payload)
print(s.text) ### Правильно ли я понимаю, что здесь должно выводиться содержимое страницы, куда перекидывает после логина?
### Здесь уже идет страница, доступная только залогиненному юзеру
s = session.get("https://releases.1c.ru/total")
soup = BeautifulSoup(s.text, 'html.parser')
print(soup)
######### Конец
##########################
Логина не происходит, какие данные нужно еще вводить?
Вот что выдает браузер при инспектировании логина:
`````````````````````````
inviteCode:
inviteType:
username: логин
password: пароль
rememberMe: on
execution: 695250f3-a2ba-4be4-a403-24c8e1a514cb_ZXlKaGJHY2lPaUpJVXpVeE1pSjkuTkhKeWVUaG5XazFqYkZGSmNrMHZibE00Tkd4RFJ6VTFhbTg1Um1veFpqSmliMmxwUm1wTVZYcGtVVE5LT0d0Q1dtbzROREpZUTNGTVFtZDRWbUkwTldwV1dFeDNReXR5TjBwTk5IZFRVaTlDZW1sbWVFUmlVRTkyUTJkamVubGtTM001ZFdaT04yRjZNbTVpUW1aTmFUTjBaekpUVjJ4R1ZHeFpRM05uT0ZvMlkxbHhNV1I2Wm1wRk1FWnJZMDk0V2tFeVlYWk9iRXRJVjAxeWNXWmxXRVJFTjJWdU1GSnRURXRVY0d4alZtOWtNWG8xUzBaMVNsTTVRa2szY25GS2JrSTBNMW95UWxGc2FtMXpabnBETkd4WmNuVlVUbWgxTUhrd1UxRkNjSEprU0ZwdFVWQlJhek12Y2xGUllqWXZjRmw0WTNCcU5rODBlVEpsWlM5VVIwVndNekpPT0RaTVNsZ3JkRXd4ZVdKRFZtczBjM1pKYkV4dU9VVldNbkZwU0RCdFFWWmxWSGhrU21ONWJ6QkJObmN3VG1seGFVdG1VVkZRYXpkSVFpczVlSEp3Y1hBeUwzQkNRWEZwU1dKSFNHVTRWVTFZ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WxwYVVtTlFWMFJ2UnpCMFkzWktjVTEzZUhwd1R6aGtVak50TDB0aVFtODRVVE0wWmt0d1ppdHRjVVZ0VlhOUGJURldkWHBRTUZkcFNVeE9iRVZ5Tm05c1NuWXZUSFV2ZUN0TVJHcFZkVE5HVFRaUk1HUjVWMG95Vm5KV1QzY3lUVmhpVG5OaFVVUlJRMHBZZG5Bd2FqQjFSakpEYjFKUVQwNXhNekpRYkdnMFNqSmFiVTVKZGtsUE9YQm1TRXgxTkhGalZISmxLMGs1TUc1elkwTXZLMjVPUWtkNlkwSjJjVVpvU1VWNWJsUm5RVlJXVVhkVlFTOVlTVmgwUjBkNGVGVkJMMDVGTjFWb04xSktVRXhDY21VeFF6ZEhSRzFzYjBGeU1HOVZWRkpLYVVoQ1NUZFFNelZqY1RoRFFtbzRWblpqYVVKbFNIRm9NU3RXVW1OaEwxaDRUMFJ0SzFaQ2VVVkNUbTVrTkdORE9HdERiRk5IVFdvMmFFSkNiemRIZEd0VFp6QnllbEJtZEdvelpHMUpNV1ZMZEVOQmNISlpPWEJ1UjAxNFluVndWVTl6VkdoVVNuaEpja012VFRWM1pWaFZiRVJ3T0RCV1dYZFNWM3AzZFc0NFNtWllhbUZCTWk5dFREWlNVMFJWU2s1clowcGlMM1ZzWkUwclpuWkpZMGRRV0N0M1VYWlRVRkp4U3pSSlVEWlFiV3hPVlQwLkFJM2ZKeGdLTG0yOTh2RXZxaXlUMVBHbVl0UkxKakFQek9LaWNpekFhd0RVTnJXWDNIdzF0QkhMLThYNWNwWC11UlY5d2N2eTBZQ3YzRVZpaHRfVDJR
_eventId: submit
geolocation:
submit: Войти
````````````````````````````````````````````
Пробовал добавлять поля _eventId: submit и submit: Войти в payload, все равно не работает..