-2
focus_Search = raw_input("Focus Search ")
url = "https://www.google.com/search?q="
res = requests.get(url + focus_Search)
print("You Just Searched")
res_String = res.text
#Now I must get ALL the sections of code that start with "<a href" and end with "/a>"
我試圖從谷歌搜索網頁上刮掉所有鏈接。我可以逐一提取每個鏈接,但我相信這是一個更好的方法。Python鏈接刮板
使用HTML解析器,也有對SO無數例子 –