Loading

上一页 1 2 3 4 5 6 ··· 10 下一页
摘要: ```bash php fpm cat /usr/lib/systemd/system/php fpm.service [Unit] Description=The PHP FastCGI Process Manager After=syslog.target network.target [Ser 阅读全文
posted @ 2020-04-13 22:16 Lust4Life 阅读(232) 评论(0) 推荐(0) 编辑
摘要: ```bash 安装升级 dpkg L XXX apt cache search xxx 搜索软件正则 aptitude search apt cache stats 系统安装包统计信息 apt cache pkgnames 所有可用包 apt cache show xxx 显示包信息 dpkg S 阅读全文
posted @ 2020-04-13 22:11 Lust4Life 阅读(1115) 评论(0) 推荐(0) 编辑
摘要: 获取歌词 https://www.cnblogs.com/weixuqin/p/8905867.html https://www.zhihu.com/question/36081767 http://music.163.com/api/v1/resource/comments/R_SO_4_5169 阅读全文
posted @ 2020-04-06 22:36 Lust4Life 阅读(297) 评论(0) 推荐(0) 编辑
摘要: 通过user_agent 和url判断网页是否可爬 阅读全文
posted @ 2020-04-04 14:32 Lust4Life 阅读(549) 评论(0) 推荐(0) 编辑
摘要: 使用工具 png 用Python的mutagen模块获取MP3音频文件的时长 https://blog.csdn.net/u011519550/article/details/84981585 操作历史 阅读全文
posted @ 2020-04-04 12:32 Lust4Life 阅读(287) 评论(0) 推荐(0) 编辑
摘要: 2020.2.19 编辑 整体示例 定位元素 查找单个元素 常用的查找元素方法: find_element_by_name (标签名称) find_element_by_id find_element_by_xpath find_element_by_link_text find_element_b 阅读全文
posted @ 2020-04-02 17:50 Lust4Life 阅读(162) 评论(0) 推荐(0) 编辑
摘要: ```bash yum install -y iw #iw-4.3-2.el7.x86_64 #查看网卡 iw dev phy#0 Unnamed/non-netdev interface wdev 0x5 addr f8:34:41:xxx type P2P-device Interface wlp2s0 ifindex 3 wdev 0x1 addr f8:34:41:79:8xxx type 阅读全文
posted @ 2020-04-02 10:53 Lust4Life 阅读(1623) 评论(1) 推荐(1) 编辑
摘要: yum groupinstall "X Window System" yum groupinstall "GNOME Desktop" ##设置开机启动图形 查看当前启动模式 # systemctl get-default 更改模式命令: systemctl set-default graphica 阅读全文
posted @ 2020-04-02 10:43 Lust4Life 阅读(991) 评论(1) 推荐(0) 编辑
摘要: ERROR 1820 (HY000): You must reset your password using ALTER USER statement before executing this st 阅读全文
posted @ 2020-04-02 10:41 Lust4Life 阅读(328) 评论(1) 推荐(0) 编辑
摘要: 1,进入界面 2,卡住 出现: [sdb] No Caching mode page found [sdb] Assuming drive cache:write through 3,查看系统u盘的名称 此时为/dev/sdb4 4,进入1画面在第一个选项按e编辑 阅读全文
posted @ 2020-04-02 10:40 Lust4Life 阅读(7150) 评论(0) 推荐(0) 编辑
摘要: 使用 exFAT 格式的设备,有些人将 exFAT 称为 FAT64 阅读全文
posted @ 2020-04-02 10:31 Lust4Life 阅读(3616) 评论(0) 推荐(0) 编辑
摘要: #!/bin/bash # 使用docker安装elasticsearch # 拉取镜像(项目使用版本为6.5.0) docker pull elasticsearch:6.5.0 # 启动镜像 docker run -d --restart=always --name elasticsearch 阅读全文
posted @ 2020-03-24 16:07 Lust4Life 阅读(214) 评论(0) 推荐(0) 编辑
摘要: 代码目录结构 https://github.com/Python3WebSpider/ProxyPool/ #文件目录组织结构 . ├── deployment.yml ├── docker-compose.yml ├── Dockerfile ├── error.log ├── examples 阅读全文
posted @ 2020-03-23 16:35 Lust4Life 阅读(501) 评论(0) 推荐(0) 编辑
摘要: 报错: https://stackoverflow.com/questions/48509732/amazon web services bash activate no such file or directory 阅读全文
posted @ 2020-03-23 13:50 Lust4Life 阅读(423) 评论(0) 推荐(0) 编辑
摘要: 文档:https://loguru.readthedocs.io/en/stable/overview.html#installation pip install loguru ##使用 ###基本使用 ##终端日志 from loguru import logger logger.debug("这 阅读全文
posted @ 2020-03-21 16:24 Lust4Life 阅读(1571) 评论(0) 推荐(0) 编辑
摘要: 官网文档 https://docs.python.org/zh-cn/3/library/argparse.html#module-argparse https://www.jianshu.com/p/fef2d215b91d 基本使用流程 #1创建解析器 #ArgumentParser 对象包含将 阅读全文
posted @ 2020-03-21 15:37 Lust4Life 阅读(276) 评论(0) 推荐(0) 编辑
摘要: hasattr(object, name) 判断一个对象里面是否有name属性或者name方法,返回BOOL值,有name特性返回True, 否则返回False。 getattr(object, name[,default]) 获取对象object的属性或者方法,如果存在打印出来,如果不存在,打印出 阅读全文
posted @ 2020-03-21 11:55 Lust4Life 阅读(351) 评论(0) 推荐(0) 编辑
摘要: 之前使用工具是jupyter导致执行效果和网络教程不一致,使用系统的python就可以达到效果 multiprocessing 是 Python 的标准模块,它既可以用来编写多进程,也可以用来编写多线程。如果是多线程的话,用 multiprocessing.dummy 即可,用法与 multipro 阅读全文
posted @ 2020-03-19 18:54 Lust4Life 阅读(397) 评论(0) 推荐(0) 编辑
摘要: 深度出品,但是感觉没有win下snapshot好用,图像不太清晰 githup: https://github.com/linuxdeepin packages/deepin scrot 安装 可能缺少依赖 启动异常处理 设置快捷键 打开—设置— 系统设置— 全部设置— 键盘— 切换到快捷键— 自定 阅读全文
posted @ 2020-03-19 14:41 Lust4Life 阅读(376) 评论(0) 推荐(0) 编辑
摘要: 值得参考的 https://www.cnblogs.com/shenh/p/9090586.html https://zhuanlan.zhihu.com/p/59621713 https://www.jianshu.com/p/b5e347b3a17c https://www.cnblogs.co 阅读全文
posted @ 2020-03-19 13:47 Lust4Life 阅读(725) 评论(0) 推荐(0) 编辑
摘要: 并发(concurrency)和并行(parallellism)是: 解释一:并行是指两个或者多个事件在同一时刻发生;而并发是指两个或多个事件在同一时间间隔发生。 解释二:并行是在不同实体上的多个事件,并发是在同一实体上的多个事件。 解释三:并发是在一台处理器上“同时”处理多个任务,并行是在多台处理 阅读全文
posted @ 2020-03-18 10:58 Lust4Life 阅读(199) 评论(0) 推荐(0) 编辑
摘要: 安装 实验成功的aof方式 redis集群搭建 https://blog.csdn.net/qq_42815754/article/details/82912130 阅读全文
posted @ 2020-03-16 10:39 Lust4Life 阅读(417) 评论(0) 推荐(0) 编辑
摘要: 5,实战操作 使用google翻译 操作步骤 示例 操作示例: 定位一组对象 批量操作 send keys 按键模拟 操作: 处理button group button group就是按钮组,将一组按钮排列在一起。处理这种对象的思路一般是先找到button group的包裹(wrapper)div, 阅读全文
posted @ 2020-03-14 18:51 Lust4Life 阅读(247) 评论(0) 推荐(0) 编辑
摘要: 4,等待 如今,大多数Web应用程序都在使用AJAX技术。 当浏览器加载页面时,该页面中的元素可能会以不同的时间间隔加载。 这使定位元素变得困难:如果DOM中尚不存在元素,则定位函数将引发ElementNotVisibleException异常。 使用等待,我们可以解决此问题。 等待在执行的动作之间 阅读全文
posted @ 2020-03-14 18:50 Lust4Life 阅读(306) 评论(0) 推荐(0) 编辑
摘要: 3,定位元素 测试对象的定位和操作是webdriver的核心内容 定位对象的目的一般有下面几种 操作对象 获得对象的属性,如获得测试对象的class属性,name属性等等 获得对象的text 获得对象的数量 webdriver提供了一系列的对象定位方法,常用的有以下几种 id name class 阅读全文
posted @ 2020-03-14 18:49 Lust4Life 阅读(231) 评论(0) 推荐(0) 编辑
摘要: 2,导航与页面交互 启动关闭浏览器 关闭浏览器有两种方式: close方法 quit方法 close方法关闭当前的浏览器窗口,quit方法不仅关闭窗口,还会彻底的退出webdriver,释放与driver server之间的连接 获取网页源码 一些方法 导航 通过调用get 方法,导航到一个url 阅读全文
posted @ 2020-03-14 18:48 Lust4Life 阅读(349) 评论(0) 推荐(0) 编辑
摘要: 1,基本原理 阶段1 基于JavaScript的代码库,使用这套代码库可以进行页面的交互操作,并且可以重复地在不同浏览器上进行各种测试操作,通过不断改进和优化,这个代码库逐渐成为Selenium Core。Selenium Core为Selenium Remote Control (RC) 和 Se 阅读全文
posted @ 2020-03-14 18:47 Lust4Life 阅读(228) 评论(0) 推荐(0) 编辑
摘要: 2个kafka群托管4个分区(P0 p3),2个消费者组,a 消费实例2个 Kafka的使用场景 阅读全文
posted @ 2020-03-14 17:29 Lust4Life 阅读(161) 评论(0) 推荐(0) 编辑
摘要: centos直接yum安装nginx Ubuntu下安装nginx,直接apt get install nginx就行了 centos 配置源 1,CentOS 7 centos6 2,查看yum的nginx信息 3,安装并启动nignx 4,测试 阅读全文
posted @ 2020-03-14 17:00 Lust4Life 阅读(137) 评论(0) 推荐(0) 编辑
摘要: 循环 下面进行集群环境初始化脚本的编写,通过ssh + expect + scp实现服务器集群自动化搭建 第一步,服务器准备 这里使用docker模拟几台服务器,分别命名为node2,node3,node4(使用镜像chenqionghe/Ubuntu,密码统一为88888888),生产环境为ip或 阅读全文
posted @ 2020-03-14 16:59 Lust4Life 阅读(124) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 10 下一页