摘要: OpenCV 下载 安装 配置 1.下载和Python版本对应的版本,此为下载地址 2.安装(在powershell管理员模式下安装) pip3 install .\opencv_python-3.4.5-cp36-cp36m-win_amd64.whl 3.若出现cv2 的报错,建议重启pycha 阅读全文
posted @ 2019-03-18 21:34 theDataDigger 阅读(276) 评论(0) 推荐(0) 编辑
摘要: 1.空白处右键新建Task(Create New Task)设置每日定时(Daily) 2.新建Actions 3.填写 Program+Start in 为Python的路径:C:\python36\python.exe Add arguments:为你的Python 程序路径 下面是Powers 阅读全文
posted @ 2019-03-18 21:32 theDataDigger 阅读(313) 评论(0) 推荐(0) 编辑
摘要: import requests import pymssql url = 'https://v1.cn-abs.com/ajax/ChartMarketHandler.ashx' headers = { 'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gec... 阅读全文
posted @ 2019-03-18 18:14 theDataDigger 阅读(156) 评论(0) 推荐(0) 编辑
摘要: #ReportingDate = soup.select('body > div.main > div > div.ctr > div.recruit > ul > li > a')[0].text.split('(')[-1].split(')')[0] ReportingDate ="2015年11月20日" array = time.strptime(Reporti... 阅读全文
posted @ 2019-03-18 17:59 theDataDigger 阅读(107) 评论(0) 推荐(0) 编辑
摘要: import requests import time base_url='http://www.bobbns.com/common-web/cms/content!getContentsIncludeSubCategoryOrderByHitCountDesc?noCache=1552542874867'# User-Agent 是必须的,其它的尽量多写点 headers={ 'Hos... 阅读全文
posted @ 2019-03-15 14:30 theDataDigger 阅读(275) 评论(0) 推荐(0) 编辑
摘要: import requests import xlwt url = 'https://v1.cn-abs.com/ajax/ChartMarketHandler.ashx' headers={ 'User-Agent':'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Ch... 阅读全文
posted @ 2019-03-15 14:23 theDataDigger 阅读(198) 评论(0) 推荐(0) 编辑
摘要: import datetime start_date='2018-01-10' end_date='2019-01-10'# 转换为2018-01-10 00:00:00start_date=datetime.datetime.strptime(start_date,'%Y-%m-%d') # 加一天end_date=datetime.datetime.strptime(end_date,'%Y... 阅读全文
posted @ 2019-03-15 08:09 theDataDigger 阅读(304) 评论(0) 推荐(0) 编辑
摘要: 之前是这样的 出现乱码,一般是两种原因,charset使用了geb2312的编码方式,而非utf-8 这里用的是utf-8,所以问题出在使用了gzip的压缩方式 阅读全文
posted @ 2019-03-14 10:04 theDataDigger 阅读(775) 评论(0) 推荐(0) 编辑
摘要: 1.Operand data type nvarchar(max) is invalid for sum operator 要转换格式 2.Conversion failed when converting the nvarchar value '236850.00' to data type in 阅读全文
posted @ 2019-02-25 16:58 theDataDigger 阅读(310) 评论(0) 推荐(0) 编辑
摘要: 推荐书籍分为5大类 通俗经济学推荐: 罗伯特弗兰克教授:罗伯特·H·弗兰克与美联储主席本·伯南克著的《宏观经济学原理》(Principles of Macroeconomics)《微观经济学原理》(Principles of Microeconomics),与萨缪尔森所著的《经济学》(Economi 阅读全文
posted @ 2019-02-24 00:54 theDataDigger 阅读(585) 评论(0) 推荐(0) 编辑