0
我正在嘗試登錄到角度web應用程序。使用Python刮擦並登錄到角webabb
我嘗試使用多個包如請求,urllib,機械化等,但無法弄清楚我失蹤/出錯。代碼如下:
import requests
from requests.utils import quote
session = requests.Session()
session.cookies.get_dict()
url = 'https://my.url.com'
authentication = {"username":"name","password":"pswd","domain":"domain_id","rURL":"https://another.url.com/something"}
reqs = requests.post(url)
response = session.get(reqs.url)
new_req = requests.post(url, data = authentication)
print new_req.text
但是,它不會登錄並再次打印登錄頁面。
你能分享鏈接嗎? –