I tried to scrape weather data from Weather Underground and found two deprecated scripts online which have been fixed here.
pip install beautifulsoup4 numpy pandas selenium
Place your chromedriver in the folder containing the script. Download it from here.