【发布时间】:2019-04-04 22:13:28
【问题描述】:
我有一个如下所示的 .csv:
Name Gender DOB Status
A M 12/13/79 Expired
B F 10/25/75 Undocumented
我正在尝试使用 selenium 将每条记录更新到网站。
import pandas as pd
import numpy as np
rec = pd.read_table('oldclients.csv', sep=',')
count_row = people.shape[0]
print (count_row)
s=people.loc[0].tolist()
到目前为止,我已经能够使用 s[1] s[2] 将变量传递给 selenium 以更新网页,但我只能让它工作一行。
我的逻辑是
Count Number of rows in csv
Foreach Row in csv -> pass values
Selenium-> Insert said values in webpage
【问题讨论】: