Beautifulsoup如何获取图片link指向的目的地地址?

Beutiful soup how to get the address of the destination which an image link point to?

我的python版本是3.4.1,美汤版本是4.3.2 http://imgur.com/u6AuY0i 我想获取图像目标的 href 但它不能显示任何东西 以下是我的代码

from bs4 import BeautifulSoup
import urllib.request
url = "https://www.google.com.tw/webhp?hl=zh-TW#hl=zh-TW&q=lol"
request = urllib.request.Request(url)
response = urllib.request.urlopen(request)
soup = BeautifulSoup(response)
for link in soup.find_all('h3' ,attrs={'class': 'r'}):
    print (link.get('href'))

除了我的 url 源不包含 'h3' 标签外,此版本适用于 python 2.7。

for tag in soup.findAll("a", {'class': 'gb1'}):
     print(tag["href"])