摘要: 1 import time 2 from concurrent.futures import ThreadPoolExecutor, as_completed, ProcessPoolExecutor 3 4 5 class ThreadPoolSpider: 6 executor = Thread 阅读全文
posted @ 2022-01-06 13:12 小和尚不吃素 阅读(32) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2021-12-30 14:01 小和尚不吃素 阅读(0) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2021-12-30 14:00 小和尚不吃素 阅读(0) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2021-12-30 13:58 小和尚不吃素 阅读(0) 评论(0) 推荐(0) 编辑
摘要: from selenium import webdriver from selenium.webdriver.common.by import By from selenium.webdriver.support.ui import WebDriverWait from selenium.webdr 阅读全文
posted @ 2021-02-22 11:41 小和尚不吃素 阅读(1826) 评论(0) 推荐(1) 编辑
摘要: 搭建虚拟环境安装pip install virtualenv创建虚拟环境virtualenv 文件夹名字进入虚拟环境Scripts\activate 阅读全文
posted @ 2021-01-13 23:42 小和尚不吃素 阅读(94) 评论(0) 推荐(0) 编辑
摘要: 一、可以直接输入的日历: 对于可以直接输入日期的我们可以用webdriver 去设置日期,流程为: 1.定位到该日期的输入的input driver.driver.find_elements_by_xpath().send_keys(2020-03-04) 二、无法直接输入的日历 方法1: 1. 定 阅读全文
posted @ 2020-10-14 00:16 小和尚不吃素 阅读(212) 评论(0) 推荐(0) 编辑
摘要: 1、鼠标事件:# 每个模拟事件后需加.perform() 才会执行# context_click() 右击# double_click() 双击# drag_and_drop(source, target) 拖动# move_to_element() 鼠标悬停# move_to 移动 from se 阅读全文
posted @ 2020-10-13 23:54 小和尚不吃素 阅读(162) 评论(0) 推荐(0) 编辑
摘要: 1 import time 2 from selenium import webdriver 3 from selenium.webdriver.common.by import By 4 from selenium.webdriver.support.wait import WebDriverWa 阅读全文
posted @ 2020-09-21 15:13 小和尚不吃素 阅读(837) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2020-09-06 16:42 小和尚不吃素 阅读(189) 评论(0) 推荐(0) 编辑