<li class="item">
"*"
<a title="test" href="/item/a test/948507/#viewPageContent">a test</a>
...
I have the following code, but it didn't do the job.
entryLi = soup.findAll('li', attrs={'class': 'item'})
for entry in entryLi:
text = entry.text
href = entry.find('a')['href']
I don't want all other hrefs, but only want href under the <li> tag.

Python Implementation
So inside
aNodeyou have the full HTML Object and insidelinkListyou'll have the links only.@marlon for the HTML object coming from the link, you could do: