摘要:
from selenium import webdriver import time bro=webdriver.Chrome() bro.get("http://www.baidu.com") bro.implicitly_wait(10) # 1、find_element_by_id 根据id找 阅读全文
posted @ 2019-11-27 21:27
杨鑫Zz
阅读(154)
评论(0)
推荐(0)
摘要:
#获取属性: # tag.get_attribute('src') #获取文本内容 # tag.text #获取标签ID,位置,名称,大小(了解) # print(tag.id) # print(tag.location) # print(tag.tag_name) # print(tag.size 阅读全文
posted @ 2019-11-27 21:24
杨鑫Zz
阅读(175)
评论(0)
推荐(0)
摘要:
from urllib.parse import unquote_plus #字符转中文from urllib.parse import urlencode #中文转字符 阅读全文
posted @ 2019-11-27 21:21
杨鑫Zz
阅读(106)
评论(0)
推荐(0)
摘要:
from requests_html import HTMLSession #请求解析库import base64 #base64解密加密库from PIL import Image #图片处理库import hmac #加密库from hashlib import sha1 #加密库import 阅读全文
posted @ 2019-11-27 21:20
杨鑫Zz
阅读(106)
评论(0)
推荐(0)
摘要:
https://cncert.github.io/requests-html-doc-cn/#/?id=%e5%ae%89%e8%a3%85 官方文档详情查询 阅读全文
posted @ 2019-11-27 21:18
杨鑫Zz
阅读(115)
评论(0)
推荐(0)
摘要:
doc=''' <html> <head> <base href='http://example.com/' /> <title>Example website</title> </head> <body> <div id='images'> <a href='image1.html' a="xxx 阅读全文
posted @ 2019-11-27 21:14
杨鑫Zz
阅读(225)
评论(0)
推荐(0)

浙公网安备 33010602011771号