如何发布请求“ <p class =“ ...”>

时间:2019-07-18 11:02:06

标签: python html post request

我有一个:


<span class=" lad TABLE15 tr_rowspan1" title="Markus" id>
<p class= "la TABLE15 tr_rowspan1"> == $0 "Markus" <br> </p>"

现在,我想使用Python发出发布请求,以将标题从“ Markus”更改为“ Timo”。

我尝试过:

import requests

session = requests.Session()

with requests.Session() as x:
    req_dic = {"class": "la TABLE15 tr_rowspan1",
               "title": "Markus"}
    req = x.post("https://example.com/", data=req_dic)

``

0 个答案:

没有答案