上一页 1 2 3 4 5 6 7 ··· 21 下一页
  2020年1月30日
摘要: 创建爬虫 scrapy genspider 名字 xxx.com 运行爬虫 运行名为usnews的爬虫scrapy crawl usnews​运行爬虫文件scrapy runspider quote_spider.py​保存到json文件里scrapy runspider quote_spider. 阅读全文
posted @ 2020-01-30 20:48 KD_131 阅读(230) 评论(0) 推荐(0)
摘要: middleware文件# -*- coding: utf-8 -*- # Define here the models for your spider middleware # See documentation in: # https://docs.scrapy.org/en/latest/to 阅读全文
posted @ 2020-01-30 20:09 KD_131 阅读(709) 评论(0) 推荐(0)
  2020年1月23日
摘要: 1. Selenium Selenium是一个Web的自动化测试工具,最初是为网站自动化测试而开发的,类型像我们玩游戏用的按键精灵,可以按指定的命令自动操作,不同是Selenium 可以直接运行在浏览器上,它支持所有主流的浏览器(包括PhantomJS这些无界面的浏览器)。 Selenium 可以根 阅读全文
posted @ 2020-01-23 11:13 KD_131 阅读(234) 评论(0) 推荐(0)
  2020年1月16日
摘要: pyppeteer使用时常见的bug及解决办法: https://blog.csdn.net/Mr__lqy/article/details/102626025 pyppeteer的基本使用: https://blog.csdn.net/Qwertyuiop2016/article/details/ 阅读全文
posted @ 2020-01-16 10:20 KD_131 阅读(261) 评论(0) 推荐(0)
  2020年1月10日
摘要: 1 for a in [1,2,3,4,5]: 2 3 for b in [1,2,3]: 4 if a == b: 5 print("a = b = %s" % a) 6 break # 退出本次for循环,执行第一行的for循环 7 else: 8 print("a = %s" % a) 9 c 阅读全文
posted @ 2020-01-10 17:38 KD_131 阅读(1302) 评论(0) 推荐(0)
  2020年1月9日
摘要: 问题:在虚拟机详情下面显示 主ip地址:网络信息不可用 解决办法: 先root用户[root@dfhf~]#cd ..[root@dfhf/]#cd /etc/sysconfig/network-scripts进入network-sctipts然后ls会有个ifcfg-ens33的文件vi这个ifc 阅读全文
posted @ 2020-01-09 18:10 KD_131 阅读(7083) 评论(0) 推荐(0)
  2019年12月26日
摘要: python logging模块 原文:http://www.cnblogs.com/dahu-daqing/p/7040764.html 1 logging模块简介 logging模块是Python内置的标准模块,主要用于输出运行日志,可以设置输出日志的等级、日志保存路径、日志文件回滚等;相比pr 阅读全文
posted @ 2019-12-26 17:26 KD_131 阅读(161) 评论(0) 推荐(0)
  2019年12月4日
摘要: 服务端 通常会显示 port xxx allocated的,意思就是 xxx 端口被占用了。 如果报port allocated端口占用,就docker ps 查看正使用的镜像,docker kill -s kill id,把这个镜像杀死 重启输入 docker run -p 8050:8050 - 阅读全文
posted @ 2019-12-04 17:35 KD_131 阅读(1284) 评论(0) 推荐(0)
摘要: 参考链接1:https://www.cnblogs.com/321lxl/p/9536616.html 参考链接2:https://blog.csdn.net/qq_18831501/article/details/81677272 遇到的主要问题:docker映射容器时报错Error respon 阅读全文
posted @ 2019-12-04 17:23 KD_131 阅读(285) 评论(0) 推荐(0)
  2019年11月29日
摘要: 一、什么是Selenium selenium 是一套完整的web应用程序测试系统,包含了测试的录制(selenium IDE),编写及运行(Selenium Remote Control)和测试的并行处理(Selenium Grid)。Selenium的核心Selenium Core基于JsUnit 阅读全文
posted @ 2019-11-29 17:32 KD_131 阅读(550) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 ··· 21 下一页