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
webdriver
is the name of the module, not your instance of it. In fact, you assigned the instance you created to the name browser
with this line: browser = webdriver.Chrome()
so instead of calling webdriver.execute_script()
(which will give you an AttributeError
), you must call it using your instance, like this: browser.execute_script()
.