摘要: java 从键盘读取数据 1.首先导包 import java.util.Scanner; 2,创建Scanner对象 Scanner sc = new Scanner(System.in); 3,读取 int i = sc.nextInt(); java生成随机数 import java.util 阅读全文
posted @ 2020-09-09 20:08 nmydt 阅读(71) 评论(0) 推荐(0) 编辑
摘要: 爬取的目标网站 1 66ip2 proxylist3, 快代理 66ip ##定义单页爬取函数 def parse_page(url): r = requests.get(url,headers=headers) if r.status_code == 200: html = etree.HTML( 阅读全文
posted @ 2020-09-02 11:02 nmydt 阅读(380) 评论(0) 推荐(0) 编辑
摘要: http://www.mamicode.com/info-detail-1909236.html 阅读全文
posted @ 2020-09-02 10:39 nmydt 阅读(134) 评论(0) 推荐(0) 编辑
摘要: 关于selenium元素点击时出现"element click intercepted :"报错 两种方法: 1 driver.ex... 阅读全文
posted @ 2020-09-01 17:00 nmydt 阅读(1266) 评论(0) 推荐(0) 编辑
摘要: centos 安装Selenium+Chrome 参照https://cuiqingcai.com/4886.html 安装yum源... 阅读全文
posted @ 2020-08-30 16:26 nmydt 阅读(124) 评论(0) 推荐(0) 编辑
摘要: 1,什么是苹果cms?苹果cms安装及使用 2,最新苹果cms官方源码下载地址 3, 苹果cms新手入门安装配置教程 4, 苹果cm... 阅读全文
posted @ 2020-08-30 16:19 nmydt 阅读(758) 评论(0) 推荐(0) 编辑
摘要: 使用的是anaconda搭建环境,python3.7,在使用scrapy startproject xxx时,报错: from cr... 阅读全文
posted @ 2020-08-30 16:11 nmydt 阅读(988) 评论(0) 推荐(2) 编辑
摘要: http=127.0.0.1:8888;https=127.0.0.1:8888 确保自己电脑的代理是这样的 ... 阅读全文
posted @ 2020-08-30 16:10 nmydt 阅读(171) 评论(0) 推荐(0) 编辑
摘要: 国内源: 新版ubuntu要求使用https源,要注意。 清华:https://pypi.tuna.tsinghua.edu.cn/... 阅读全文
posted @ 2020-08-30 16:05 nmydt 阅读(1334) 评论(0) 推荐(0) 编辑
摘要: “lxml.etree类型。不能序列化ElementUnicodeResult” 原因: text()类型不需要使用tostring... 阅读全文
posted @ 2020-08-30 15:57 nmydt 阅读(1105) 评论(0) 推荐(0) 编辑