3 回答

TA贡献1846条经验 获得超7个赞
在unid保存在JS阵列
vetFiltro[0]=["e3724364",0,1,....];
这1是unid,你可以用正则表达式得到它
# e-col5
unitID = vendor[1].get('id').replace('line_', '') # line_e3724364 => e3724364
regEx = r'"%s",\d,(\d+)' % unitID
unit = re.search(regEx, page.text).group(1)
print(unit + ' unids')

TA贡献1810条经验 获得超4个赞
如果你仔细看看,unid这只是一个 div 中的图像,由 a 移动class到正确的数字。
例如unid1:
.jLsXy {
background-image: url(arquivos/up/comp/imgunid/files/img/181224lSfWip8i1lmcj2a520836c8932ewcn.jpg);
}
是包含数字的图像。
.gBpKxZ {
background-position: -424px -23px;
}
是数字 1 的类
因此,找到与该数字匹配的 css 并创建您的表格(简单的方法),但不是最好的方法。
编辑: 似乎每次重新加载时都会更改位置(类),因此更难将数字与图像匹配:(因此数字 1 可以从许多地方获取。
Edit2 我使用的是 chrome devtools。如果您检查 ,unid您也会找到css每个班级的 。所以在检查了 url 之后就很清楚了。
添加回答
举报