I am using selenium to scrape an infinite scrolling page.
I am trying to use this code:
import time
import pandas as np
import numpy as np
from sele
To make it work you have to create an instance of webdriver, e.g.:
from selenium import webdriver
driver = webdriver.Chrome() # webdriver.Ie(), webdriver.Firefox()...
last_height = driver.execute_script("return document.body.scrollHeight")
You can download Chromedriver from here
You also need to add path to Chromedriver to your environment variable PATH or just put downloaded file into the same folder as your Python executable...