Python进行网站状态检查
检查网站连通性# 检查网站连通性 import urllib.request,time opener = urllib.request.build_opener() opener.addheader = [('User-agent','Mozilla/49.0.2')] #放网址的文件,一行一行地放 file = open('url.txt') lines = file.readlines...
检查网站连通性# 检查网站连通性 import urllib.request,time opener = urllib.request.build_opener() opener.addheader = [('User-agent','Mozilla/49.0.2')] #放网址的文件,一行一行地放 file = open('url.txt') lines = file.readlines...
# 多线程爬取URL状态,检查URL是否有效 import urllib import os import time import threading ...
基于网页版QQ,批量发送QQ消息 import time from selenium import webdriver from selenium.webdriver.common.desired_capabilities import DesiredCapabilities from selenium.webdriver.support.ui import Select init_pag...
谷歌浏览器实现打开百度并搜索# 谷歌浏览器实现打开百度并搜索 from selenium import webdriver from selenium.w...
基本配置1.安装Python以及用pip安装Selenium2.下载相应浏览器的驱动,放到Python根目录浏览器驱动下载地址Chrome 67.0.3396.99https://chromedriver.storage.googleapis.com/index.html?path=2.40/IE 11.0http://selenium-release.storage.googleapis....