如何将google知识面板中的答案提取到python中的变量中?

如何将google知识面板中的答案提取到python中的变量中?,python,google-search-api,Python,Google Search Api,以下代码: from bs4 import BeautifulSoup import requests search_results=[] query="who is the father of Tom Cruise" keyword=query.replace(" ", "+") google_search = "https://www.google.co.in/search?sclient=psy-ab&client=ubuntu&hs=k5b&channel=fs&

以下代码:

from bs4 import BeautifulSoup
import requests
search_results=[]
query="who is the father of Tom Cruise"
keyword=query.replace(" ", "+")
google_search = "https://www.google.co.in/search?sclient=psy-ab&client=ubuntu&hs=k5b&channel=fs&biw=1366&bih=648&noj=1&q="+keyword
r=requests.get(google_search)
soup=BeautifulSoup(r.text,"html.parser")
url=soup.findAll('span',{"class":"st"})
for u in url:
    search_results.append(u.text)
    print("u===",u)
    break
给出:

克鲁斯出生于纽约州的锡拉丘兹,玛丽·李(née Pfeiffer)是一名特殊教育教师,托马斯·克鲁斯·马普奥瑟三世(Thomas Cruise Mapother III)是一名电气工程师,两人都来自肯塔基州的路易斯维尔。他有三个姐妹:李·安妮、玛丽安和卡斯

但谷歌知识小组给出:

托马斯·马普奥瑟三世


我需要这个(Thomas Mapother III),我怎样才能让python代码给我google知识面板的内容?

如果你查看服务器的响应,例如
print(r.text)
并且使用一些HTML漂亮的格式化程序,你会发现,这个知识面板不包含在这个HTML中。我还没有找到任何方法来加载它。您是否取得了任何进展?如果您查看服务器的响应,例如
print(r.text)
,并使用一些HTML漂亮的格式化程序,您将发现,此HTML中不包含此知识面板。我还没有找到任何方法来加载它。你有什么进展吗?