cfg.offset
self.background_path = cfg.background_path
self.slider_path = cfg.slider_path
获取验证图片并计算滑块距离...def get_images(self):
"""
获取验证码图片
:return: 图片的location信息
"""
url = selenium_item.get_attribute...= np.sum(grad, axis=1)
cols_sum = np.sum(grad, axis=0)
left, top, bottom = 0, 0, h
# get...break
return top, bottom + 1, left
生成滑动轨迹
def get_tracks(distance):
v = random.randint...(2, 4)
else:
a = -random.randint(3, 5)
s = v * t + 0.5 * a * t ** 2