Я пытаюсь получить веб-ссылку на следующем, используя BeautifulSoupИзвлечение ссылки из URL с помощью BeautifulSoup
<div class="alignright single">
<a href="http://www.dailyhadithonline.com/2013/07/21/hadith-on-clothing-women-should-lower-their-garments-to-cover-their-feet/" rel="next">Hadith on Clothing: Women should lower their garments to cover their feet</a> » </div>
</div>
Мой код выглядит следующим образом
from bs4 import BeautifulSoup
import urllib2
url1 = "http://www.dailyhadithonline.com/2013/07/21/hadith-on-clothing-the-lower-garment-should-be-hallway-between-the-shins/"
content1 = urllib2.urlopen(url1).read()
soup = BeautifulSoup(content1)
nextlink = soup.findAll("div", {"class" : "alignright single"})
a = nextlink.find('a')
print a.get('href')
я получаю следующее сообщение об ошибке, пожалуйста, помогите
a = nextlink.find('a')
AttributeError: 'ResultSet' object has no attribute 'find'