Python:请求发布数据

时间:2016-09-11 22:32:38

标签: python python-requests

这是我的程序我想在我的网站上用python程序创建一个帐户主网站是http://icebithosting.com/

import requests

with requests.Session() as c:
    url="http://icebithosting.com/register.php"
    EMAIL="charliep1551@gmail.com"
    PASSWORD = "cp5980109"
    c.get(url)
    login_data= dict(username=EMAIL,password=PASSWORD,confirm=PASSWORD)
    c.post(url, data=login_data,)
    c.get("http://icebithosting.com/")
    print (page.content)

0 个答案:

没有答案