- 博客(10)
- 收藏
- 关注
原创 SQLZOO练习总结
sql语句执行顺序由于是1、from子句2、where子句3,group by having4、select子句所以where 中不能使用select中 计算结果1、between的使用SELECT name, area FROM worldWHERE area BETWEEN 200000 AND 250000; 而不是 between (200000,250000)2、like相当于等号SELECT name FROM worldWHERE name LIKE capita
2020-10-07 21:20:11 180
原创 uiautomator2连接报错uiautomator2 is not reponding/Local server not started, start with
uiautomator2连接,python命令行里connect正常,print(d.info)就报错另外,执行了python -m uiautomator2 init,显示successful,但是手机上找不到atx 和com.github.uiautomator.testimport uiautomator2>>> d = uiautomator2.connect()...
2020-05-01 17:55:55 10575
原创 Anaconda安装uiautomator2
进入Anaconda prompt,使用conda install uiautomator2出现PackagesNotFoundError: The following packages are not available from current channels:接着使用anaconda search -t conda uiautomator2发现搜索结果为空,于是放弃,进入cm...
2020-04-29 23:19:29 991
原创 网络爬虫之股票实例
从东方财富获取股票列表,从百度股票获取各个股票详细信息#CrawBaiduStocksB.pyimport requestsfrom bs4 import BeautifulSoupimport tracebackimport re def getHTMLText(url, code="utf-8"): try: r = requests.get(url) ...
2020-04-24 21:48:38 925
原创 网络爬虫之提取(BeautifulSoup)
选取非文本类型节点,需要import bs4<>.() 等价于 <>.find_all()#查询该<>节点下全部某节点soup() 等价于 souo.find_all()#查询全部某节点输出中文对齐问题#CrawUnivRankingB.pyimport requestsfrom bs4 import BeautifulSoupimport bs4...
2020-04-24 15:29:21 340
原创 网络爬虫之规则(添加user-agent,及爬取图片)
第一章个人总结:爬取亚马逊商品网页页面失败,打印r.text,错误由API造成,事实上,页面返回了信息,说明错误不是网络造成的然后打印r.request.headers,查看请求头,爬虫把自己是个爬虫告知网页,网页拒绝,所以进行修改2 爬取图片全代码...
2020-04-23 15:19:50 548
转载 Xpath string()提取多个子节点中的文本
Xpath string()提取多个子节点中的文本<div> <ul class="show"> <li>275万购昌平邻铁三居 总价20万买一居</li> <li>00万内购五环三居 140万安家东三环</li> <li>北京首现零首付楼盘 53万购东5环...
2020-04-19 15:16:45 1636 1
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人