摘要: '''''' ''' find: 找第一个 find_all: 找所有 标签查找与属性查找: name 属性匹配 name 标签名 attrs 属性查找匹配 text 文本匹配 标签: - 字符串过滤器 字符串全局匹配 - 正则过滤器 ... 阅读全文
posted @ 2019-07-03 19:38 Zaccheooo 阅读(127) 评论(0) 推荐(0) 编辑
摘要: html_doc = """ The Dormouse's story $37 Once upon a time there were three little sisters; and their names were Elsie, Lacie and Tillie; and they lived at the bottom of a well. ... """ from bs4 impo... 阅读全文
posted @ 2019-07-03 19:37 Zaccheooo 阅读(124) 评论(0) 推荐(0) 编辑
摘要: ''' 初级版: form tank! ''' import time from selenium import webdriver from selenium.webdriver.common.keys import Keys driver = webdriver.Chrome() try: driver.implicitly_wait(10) #往京东发送请求 ... 阅读全文
posted @ 2019-07-03 10:48 Zaccheooo 阅读(143) 评论(0) 推荐(0) 编辑
摘要: from selenium import webdriver from selenium.webdriver import ActionChains from selenium.webdriver.common.keys import Keys #键盘按键操作 import time driver = webdriver.Chrome() try: driver.implicitly... 阅读全文
posted @ 2019-07-03 08:49 Zaccheooo 阅读(112) 评论(0) 推荐(0) 编辑