BeautifulSoup, findAll after findAll?
<p>I'm pretty new to Python and mainly need it for getting information from websites.
Here I tried to get the short headlines from the bottom of the website, but cant quite get them.</p>

<pre><code>from bfs4 import BeautifulSoup
import requests

url = "http://some-website"
r = requests.get(url)
soup = BeautifulSoup(r.content, "html.parser")

nachrichten = soup.findAll('ul', {'class':'list'})
</code></pre>

<p>Now I would need another findAll to get all the links/a from the var "nachrichten", but how can I do this ?</p>

<pre><code>from bs4 import BeautifulSoup
import requests
url = "http://www.n-tv.de/ticker/"
r = requests.get(url)
soup = BeautifulSoup(r.content, "html.parser")
nachrichten = soup.findAll('ul', {'class':'list'})
links = []
for ul in nachrichten:
    links.extend(ul.findAll('a'))
print len(links)
</code></pre>

<p>Hope this solves your problem and I think the import is bs4. I never herd of bfs4 </p>

python beautifulsoup python-requests