python - html通过python提交
问题描述
在 fb 上提交发布的数据所需的 html 提交论坛是什么,
脚本源代码:
import requests
from bs4 import BeautifulSoup
url = "https://www.facebook.com/login/identify/"
target_profile = raw_input("Enter the Target's Profile Link: ")
payload = {"email": target_profile, "submit": "submit"}
r = requests.post(url, data=payload)
f=open('results.html', 'w')
f.write(r.content)
f.close()
html源码:
<label class="uiButton uiButtonConfirm uiButtonNoText" id="did_submit" for="u_0_5"><input value="Search" name="did_submit" id="u_0_5" type="submit"></label>
有效载荷是否正确?不知道为什么它不发送有效负载,在将响应保存在 html 文件中并通过 firefox 打开它之后,我没有得到我希望的响应,html 文件应该包含发送重置代码的页面以及电子邮件和电话号码除了最后 2 个以外都为空白,但它只显示了它说输入个人资料 url 以查找使用 searchbar 中的 target_profile 变量的通行证重置的页面....