我正在尝试迭代保存在excel文件中的url列表。网址有点像www.xyz.com/variable。 xyz.com始终是固定的,但变量存储在需要迭代的excel文件中。
以下是我一直在尝试的内容:
workbook = xlrd.open_workbook("people.xlsx")
worksheet = workbook.sheet_by_name('Sheet1')
url_tt= xyz.com
for current_row in range(worksheet.nrows):
caseid = worksheet.row(current_row)[0]
url_final = url_tt + caseid
driver.get("url_final")