使用selenium模拟登陆去哪儿网并搜索机票 python
答案:2 悬赏:10
解决时间 2021-12-31 08:16
- 提问者网友:wodetian
- 2021-12-30 19:33
使用selenium模拟登陆去哪儿网并搜索机票 python
最佳答案
- 二级知识专家网友:时光挺欠揍
- 2021-12-30 20:39
selenium中有截图的操作 使用save_screenshot方法保存图片
driver.save_screenshot("code.jpg")
想觉得图片太大 剪辑图片可以使用PIL中的Image模块剪辑
img = Image.open("code.jpg")
region = (10, 10, 100, 100)
nimg = img.crop(region)
nimg.save("new_code.jpg")
driver.save_screenshot("code.jpg")
想觉得图片太大 剪辑图片可以使用PIL中的Image模块剪辑
img = Image.open("code.jpg")
region = (10, 10, 100, 100)
nimg = img.crop(region)
nimg.save("new_code.jpg")
全部回答
- 1楼网友:浪者不回头
- 2021-12-30 22:02
搜一下:使用selenium模拟登陆去哪儿网并搜索机票 python
我要举报
如以上问答内容为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
大家都在看
推荐资讯