0
import pandas as pd
import numpy as np
from bs4 import BeautifulSoup
import requests
import urllib
import csv,datetime,re

url_ = "https://www.wunderground.com/history/daily/ca/toronto/CYTZ/date/2016-6-25"
mypage = requests.get(url_).text
soup = BeautifulSoup(mypage,'html.parser')
soup.find_all('tr')

I was trying to fetch the weather data from wunderground. BeautifulSoup has fetched the source code but I don't know why when I use soup.find_all('tr') it keeps on giving me [] ('None'). Anyone know why?

Thank you!

Andreas Rossberg
  • 34,518
  • 3
  • 61
  • 72
Lucian
  • 21
  • 1
  • 6

1 Answers1

0

The table data (most probably) gets populated by javascript. take a look at this question.

mursalin
  • 1,151
  • 1
  • 7
  • 18