I am trying to scrape the texts from a website with BeautifulSoup + python requests. But it is only getting [] as an output.
from bs4 import BeautifulSoup
import requests
url = "http://nos.nl/artikel/2093082-steeds-meer-nekklachten-bij-kinderen-door-gebruik-tablets.html"
r = requests.get(url)
soup = BeautifulSoup(r.content)
data = soup.find_all("div", {"class": "article_title"})
print data
output:
[]
I've tried;
> data = soup.find_all("div", {"class": "article_title"}
> data = soup.find_all("div", class_="article_title") data =
> data = soup.find_all("div", class_="article")
What am I doing wrong?