我运行了以下代码:
url_req = "https://en.wikipedia.org/wiki/A._P._J._Abdul_Kalam"
response = requests.get(url=url_req,verify=True)
soup = BeautifulSoup(response.text, "lxml")
如何将这个soup
对象保存为XML文件到磁盘上?