04 2020 档案
摘要:1.指定开头,指定结尾 str1 = "background-image: url(https://image2.pearvideo.com/cont/20200428/cont-1671582-12370181.png);" # \b开头字符.*?结尾字符\b res = re.search(r"
阅读全文
摘要:from selenium import webdriver from selenium.webdriver.chrome.options import Options # => 引入Chrome的配置 import time # 配置 ch_options = Options() ch_optio
阅读全文
摘要:首先selenium 很人性化的给提供了一个Select的模块,供处理下来菜单,首先我们需要导入Select,通过from selenium.webdriver.support.select import Select来导入。 Select中提供几个用于定位的option的方法,下面看一下具体的方法
阅读全文
摘要:一、JDK的安装1.双击jdk安装文件 。 2.直接点击“下一步” 。 3.点击“更改”,更改安装路径,可自定义安装路径(可将安装路径复制下来,在环境配置中需要安装路径),更改后点击确定。 4.等待安装完成,安装完成后直接点击关闭即完成安装。 二、环境的配置1.在控制面板->系统中,点击高级设置 2
阅读全文
摘要:#coding=utf-8 ''' selenium ''' from selenium import webdriver as wd import time bc=wd.Chrome(executable_path='f:\\chromedriver') #bc=wd.Ie(executable_
阅读全文
摘要:aiohttp分为服务器端和客户端,本文只介绍客户端。由于上下文的缘故,请求代码必须在一个异步的函数中进行: async def fn(): pass 安装 pip install aiohttp 基本语法 async with aiohttp.request('GET','https://gith
阅读全文