摘要: 阅读全文
posted @ 2019-01-10 00:42 AngDH 阅读(83) 评论(0) 推荐(0)
摘要: optionList = doc.xpath("//*[@id='schedules_vessel_tracing_f:hl16']/option[position()>1]")对位置大于1 的option 提取 .get('value') 获取value 的值 doc.xpath("//ul[st 阅读全文
posted @ 2019-01-08 14:37 AngDH 阅读(360) 评论(0) 推荐(0)
摘要: 报错 Operand should contain 1 column(s) 原因 select 后面加了 () select (x,x,x) 阅读全文
posted @ 2019-01-02 20:05 AngDH 阅读(2610) 评论(0) 推荐(0)
摘要: mysql查询默认是不区分大小写的 如: 1 2 select * from some_table where str=‘abc'; select * from some_table where str='ABC'; 1 2 select * from some_table where str=‘a 阅读全文
posted @ 2018-12-29 16:50 AngDH 阅读(628) 评论(0) 推荐(0)
摘要: INSERT INTO new_schedules_spider_shipsname ( ID,SCAC,VESSEL,VOYAGE,SERVICE_NAME,MD5 ) SELECT NULL,%s,%s,%s,%s,%s FROM DUAL WHERENOT EXISTS ( SELECT * 阅读全文
posted @ 2018-12-26 16:25 AngDH 阅读(385) 评论(0) 推荐(0)
摘要: 安装:通过pip install scrapy即可安装 在ubuntu上安装scrapy之前,需要先安装以下依赖:sudo apt-get install python3-dev build-essential python3-pip libxml2-dev libxslt1-dev zlib1g- 阅读全文
posted @ 2018-12-25 13:55 AngDH 阅读(118) 评论(0) 推荐(0)
摘要: 安装 tar -zxvf mitmproxy-3.0.1-linux.tar.gz sudo mv mitmproxy mitmdump mitmweb /usr/bin 详情 https://germey.gitbooks.io/python3webspider/1.7.2-MitmProxy%E 阅读全文
posted @ 2018-12-19 17:25 AngDH 阅读(159) 评论(0) 推荐(0)
摘要: 1,centos7 安装 google-chrome (1) 添加chrome的repo源 vi /etc/yum.repos.d/google.repo 2 安装 3 查看版本号 chromedriver 下载地址 http://npm.taobao.org/mirrors/chromedrive 阅读全文
posted @ 2018-12-13 23:52 AngDH 阅读(346) 评论(0) 推荐(0)
摘要: 下载网站 https://digi.bib.uni-mannheim.de/tesseract/ 阅读全文
posted @ 2018-12-08 16:29 AngDH 阅读(86) 评论(0) 推荐(0)
摘要: linux 安装 pyuthon 安装 pip install gunicorn manage.py 文件 运行命令 gunicorn -D -b 0.0.0.0:12100 manage:app -D 后台运行 gunicorn --access-logfile access.log --erro 阅读全文
posted @ 2018-12-03 23:13 AngDH 阅读(3814) 评论(0) 推荐(0)