python selenium scrape the whole table
问题 The purpose of this code is to scrape a data table form a some links then turn it into a pandas data frame. The problem is that this code only scrapes the first 7 rows only which are in the first page of the table and I want to capture the whole table. so when i tried to loop over table pages, i got an error. Here is the code: from selenium import webdriver urls = open(r"C:\Users\Sayed\Desktop\script\sample.txt").readlines() for url in urls: driver = webdriver.Chrome(r"D:\Projects\Tutorial