#!/usr/bin/env python3
from lxml import html
from bs4 import BeautifulSoup
from selenium import webdriver
from webdriver_manager.chrome import ChromeDriverManager
import pandas as pd
import requests
import urllib.request
import pprint
import time

# driver = webdriver.Chrome()
# driver = webdriver.PhantomJS(executable_path = 'C:\Programming\phantomjs-2.1.1-windows\bin')

url = "https://www.theweathernetwork.com/ca/monthly/ontario/toronto"
driver = webdriver.Chrome(ChromeDriverManager().install())
driver.get(url)
# driver.execute_script("window.scrollTo(0, document.body.scrollHeight);var lenOfPage=document.body.scrollHeight;return lenOfPage;")

# page = urllib.request.urlopen(url)
# soup = BeautifulSoup(page, 'html.parser')
# results = soup.find_all('td', attrs={'class': 'day-sunday cal -sq'})
time.sleep(10)

results = driver.find_elements_by_class_name('actual')
print(len(results))

for i in results:
	text = i.text
	print(text)
e68fe886a7c73729ea59dfdd8a566b3036acece0
<mask token>

<mask token>
driver.get(url)
time.sleep(10)
<mask token>
print(len(results))
for i in results:
    text = i.text
    print(text)

<mask token>
url = 'https://www.theweathernetwork.com/ca/monthly/ontario/toronto'
driver = webdriver.Chrome(ChromeDriverManager().install())
driver.get(url)
time.sleep(10)
results = driver.find_elements_by_class_name('actual')
print(len(results))
for i in results:
    text = i.text
    print(text)

from lxml import html
from bs4 import BeautifulSoup
from selenium import webdriver
from webdriver_manager.chrome import ChromeDriverManager
import pandas as pd
import requests
import urllib.request
import pprint
import time
url = 'https://www.theweathernetwork.com/ca/monthly/ontario/toronto'
driver = webdriver.Chrome(ChromeDriverManager().install())
driver.get(url)
time.sleep(10)
results = driver.find_elements_by_class_name('actual')
print(len(results))
for i in results:
    text = i.text
    print(text)

#!/usr/bin/env python3
from lxml import html
from bs4 import BeautifulSoup
from selenium import webdriver
from webdriver_manager.chrome import ChromeDriverManager
import pandas as pd
import requests
import urllib.request
import pprint
import time

# driver = webdriver.Chrome()
# driver = webdriver.PhantomJS(executable_path = 'C:\Programming\phantomjs-2.1.1-windows\bin')

url = "https://www.theweathernetwork.com/ca/monthly/ontario/toronto"
driver = webdriver.Chrome(ChromeDriverManager().install())
driver.get(url)
# driver.execute_script("window.scrollTo(0, document.body.scrollHeight);var lenOfPage=document.body.scrollHeight;return lenOfPage;")

# page = urllib.request.urlopen(url)
# soup = BeautifulSoup(page, 'html.parser')
# results = soup.find_all('td', attrs={'class': 'day-sunday cal -sq'})
time.sleep(10)

results = driver.find_elements_by_class_name('actual')
print(len(results))

for i in results:
	text = i.text
	print(text)