会员
周边
新闻
博问
AI培训
云市场
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
Welcome to My Blog
keep learning,keep moving
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
···
21
下一页
2020年3月28日
文件 文件夹的管理
摘要: python中对文件、文件夹(文件操作函数)的操作需要涉及到os模块和shutil模块。 得到当前工作目录,即当前Python脚本工作的目录路径: os.getcwd() 返回指定目录下的所有文件和目录名:os.listdir() 函数用来删除一个文件:os.remove() 删除多个目录:os.r
阅读全文
posted @ 2020-03-28 19:53 KD_131
阅读(313)
评论(0)
推荐(0)
编辑
2020年3月9日
Appium使用
摘要: 初始化# Android environment from appium import webdriver desired_caps = {}desired_caps['platformName'] = 'Android'desired_caps['platformVersion'] = '8.1'
阅读全文
posted @ 2020-03-09 17:37 KD_131
阅读(180)
评论(0)
推荐(0)
编辑
2020年3月6日
Python3+mitmproxy安装使用教程(Windows)
摘要: 转: https://blog.csdn.net/weixin_33898233/article/details/86029652?depth_1-utm_source=distribute.pc_relevant.none-task&utm_source=distribute.pc_relevan
阅读全文
posted @ 2020-03-06 17:36 KD_131
阅读(259)
评论(0)
推荐(0)
编辑
使用mitmproxy抓包手机APP的配置步骤
摘要: 转: https://www.jianshu.com/p/8ee3f9f46d7a 注意 1. 手机安装完证书之后还有一步 “证书信任设置” 操作 2. 手机设置代理的时候 ip地址和电脑本机是一样的
阅读全文
posted @ 2020-03-06 17:35 KD_131
阅读(648)
评论(0)
推荐(0)
编辑
2020年3月5日
Win10下如何安装和搭建appium自动化测试环境
摘要: 转:https://www.cnblogs.com/huainanhai/p/11577419.html 安装Android SDK https://www.jianshu.com/p/2acdc1d51306 https://blog.csdn.net/qq_35868412/article/de
阅读全文
posted @ 2020-03-05 15:29 KD_131
阅读(334)
评论(0)
推荐(0)
编辑
2020年2月27日
pip 安装超时问题
摘要: pip install -i https://pypi.doubanio.com/simple/ 包名 参考: https://blog.csdn.net/qq_39161804/article/details/81191977
阅读全文
posted @ 2020-02-27 00:16 KD_131
阅读(146)
评论(0)
推荐(0)
编辑
2020年2月13日
scrapy全栈抓xpc练习
摘要: # spider文件 # -*- coding: utf-8 -*- import scrapy import re from scrapy import Request import json import string import random from xpc.items import Po
阅读全文
posted @ 2020-02-13 17:20 KD_131
阅读(338)
评论(0)
推荐(1)
编辑
2020年2月7日
pyppeteer基本使用demo
摘要: # -*- coding: utf-8 -*- # 类似selenium,支持异步,不需要再单独安装环境,pyppeteer自动安装环境 # 异步await要写到一个函数的内部 from pyppeteer import launch import asyncio from lxml import
阅读全文
posted @ 2020-02-07 15:40 KD_131
阅读(311)
评论(0)
推荐(0)
编辑
2020年2月6日
asyncio在爬虫中的使用
摘要: # -*- coding: utf-8 -*- # 协程基础.pyimport asyncio import time async def request(url): print("正在请求:", url) # r = await asyncio.sleep(3) time.sleep(3) pri
阅读全文
posted @ 2020-02-06 17:59 KD_131
阅读(786)
评论(0)
推荐(0)
编辑
2020年2月1日
scrapy的扩展件extensions
摘要: extensions.py文件# -*- coding: utf-8 -*- # 该扩展会在以下事件时记录一条日志: # spider被打开 # spider被关闭 # 爬取了特定数量的条目(items) import logging from collections import defaultd
阅读全文
posted @ 2020-02-01 12:00 KD_131
阅读(635)
评论(0)
推荐(0)
编辑
上一页
1
2
3
4
5
6
···
21
下一页