摘要: 我的电脑是联想小新,CPU是AMD的,mac对AMD处理器不是很友好,所以在安装的时候老是遇到各种各样的问题 其中最烦的就是CPU禁用的问题,查过很多博主写的,都是在虚拟机名称.vmx的最后加上cpuid,但是我也不知道这里要写哪种id才是对的,就只能一个个的去试,有的博主写的是inter的cpu, 阅读全文
posted @ 2023-04-21 11:53 疾风不弃 阅读(394) 评论(0) 推荐(0) 编辑
摘要: 1 #coding:utf-8 2 import requests,os,re 3 from bs4 import BeautifulSoup 4 from selenium import webdriver 5 from selenium.webdriver.chrome.options import Options 6 from selenium.webdriver.common.keys i 阅读全文
posted @ 2019-10-12 13:40 疾风不弃 阅读(1267) 评论(0) 推荐(0) 编辑
摘要: #coding:utf-8 import requests,os from bs4 import BeautifulSoup class downloader(): def __init__(self): self.urls = [] # 保存章节链接 self.name = [] # 保存章节名 def Response(self):... 阅读全文
posted @ 2019-10-11 09:20 疾风不弃 阅读(877) 评论(0) 推荐(0) 编辑
摘要: 1 respone = requests.get('https://www.meiwen.com.cn/article/58030.html') 2 #解析获取到的网页信息 3 result_list = BeautifulSoup(respone.text,'lxml') 4 #在解析的信息中查找p标签, 5 soup = result_list.select('p') 6 #... 阅读全文
posted @ 2019-07-12 11:49 疾风不弃 阅读(602) 评论(0) 推荐(0) 编辑
摘要: 1 # -*- coding:utf-8 -*- 2 import requests,json 3 4 class RunMain(): 5 # def __init__(self,url,method,data=None,headers=None): 6 # self.res = self.run_main(url,method,data,headers)... 阅读全文
posted @ 2019-06-24 16:03 疾风不弃 阅读(179) 评论(0) 推荐(0) 编辑
摘要: 1 #在元素定位二次封装的基础上,封装判断元素是否可见,找到元素时返回True,找不到元素的时候抛出异常,返回False 2 def isElementPresent(self,locate_type,value): 3 try: 4 self.findElement(locate_type,value) 5 return True 6 except ... 阅读全文
posted @ 2019-06-06 14:20 疾风不弃 阅读(2102) 评论(0) 推荐(0) 编辑
摘要: 1 # -*- coding: utf-8 -*- 2 3 import urllib.request 4 5 import json 6 import gzip 7 8 cityname = input('请输入你想查询的城市:\n') 9 10 # 访问的url,其中urllib.parse.quote是将城市名转换为url的组件 11 url = 'http://... 阅读全文
posted @ 2019-06-05 10:46 疾风不弃 阅读(561) 评论(0) 推荐(0) 编辑
摘要: 1 import re 2 import os 3 import requests 4 from time import sleep 5 6 headers = { 7 "User-Agent": ("Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:64.0) " 8 "Gecko/2010... 阅读全文
posted @ 2019-06-05 10:06 疾风不弃 阅读(229) 评论(0) 推荐(0) 编辑
摘要: 1 # coding:utf8 2 from multiprocessing.dummy import Pool as ThreadPool 3 import multiprocessing 4 import requests, os, codecs, time 5 from lxml import etree 6 7 url = 'https://www.biquge5200.... 阅读全文
posted @ 2019-06-05 09:58 疾风不弃 阅读(425) 评论(0) 推荐(0) 编辑
摘要: from selenium import webdriver import time driver=webdriver.Firefox() driver.get('http://127.0.0.1/zentao/user-login.html') time.sleep(3) #调用jquery,在浏览器编辑的 jq=''' $('#account').val('admin'); ... 阅读全文
posted @ 2019-03-29 19:24 疾风不弃 阅读(222) 评论(0) 推荐(0) 编辑