使用会话的python登录freenom

使用会话的python登录freenom,python,session,login,Python,Session,Login,试图在freenom中创建脚本更新我的url转发,同时被使用pythong的web登录阻止。我在谷歌上搜索了很多工作代码,但没有一个适合我 以下是我得到的最常见的代码: import requests url = "https://my.freenom.com/clientarea.php?action=emails" payload = {'username': 'mytest@gmail.com', 'password': 'mypassword'} with requests.sessi

试图在freenom中创建脚本更新我的url转发,同时被使用pythong的web登录阻止。我在谷歌上搜索了很多工作代码,但没有一个适合我

以下是我得到的最常见的代码:

import requests

url = "https://my.freenom.com/clientarea.php?action=emails"
payload = {'username': 'mytest@gmail.com', 'password': 'mypassword'}
with requests.session() as s:
    # fetch the login page
    s.get(url)
    # post to the login form
    r = s.post(url, data=payload)
    print(r.content)

当我将打印内容保存到html中时,我发现它不是登录页面。有人看到任何明显的问题吗?

好的,尽管我可以使用

url = "https://my.freenom.com/clientarea.php?action=emails"
用于在资源管理器中登录,但当我使用其他地址时

"https://my.freenom.com/dologin.php"
我的脚本正在运行

谁能解释为什么