自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(6)
  • 收藏
  • 关注

原创 selenium:Can not connect to Service chromedriver

今天用python和selenium爬虫的时候遇到错误,“Can not connect to Service chromedriver”,说是不能连接驱动,换了chrom和firefox都不行,之前还爬虫代码没有问题,也没有对系统做过修改。查找网上解决之道,出现比较多的回答是:将host文件(在C:\Windows\System32\drivers\etc 目录下)的127.0.0.1 loca...

2018-03-31 19:16:09 950

原创 python+stata

stata在数据处理与分析方面具有一定的优势,而且软件又小,在配置一般的PC机里运行也较为流畅。#1.另外保存do文件,在python中运行外部do文件 import subprocess import codecs import os stata_path="C:\\Program Files (x86)\\Stata14\\StataMP-64.exe" dofile_path="C:\\U...

2018-03-11 09:52:20 6310 1

原创 python+selenium获取网页代码

step1.安装selnium:pip3 install selniumstep2:下载firefox或chrome浏览器step3:下载驱动firefox(https://github.com/mozilla/geckodriver/releases)或chrome驱动(https://sites.google.com/a/chromium.org/chromedriver/ 或者 http:/...

2018-03-04 09:27:33 8125

原创 python-更新网页上的新闻

newstraceGui.pyfrom tkinter import * import codecs import getdata import allobject class newstraceGui: def __init__(self): window = Tk() window.title('新闻动态追踪') # 创建菜单栏 ...

2018-03-02 14:40:16 407

原创 python-读取excle信息

以读取IPO正常审核状态企业基本信息情况表为例,这个帖子介绍了表格的下载http://blog.csdn.net/tiantiantdx/article/details/79401698import os import re import xlrd path='C:\\Users\\jack\\PycharmProjects\\untitled' # 根据模糊文件名查找文件 file=re.co...

2018-03-01 10:52:27 330

原创 python-检查网站更新

以中国银行业协会的协会要闻为例:http://www.china-cba.net/list.php?fid=42from urllib.request import urlopen import re import codecs import os web='http://www.china-cba.net/list.php?fid=42.html' # 读取网页 try: file=ur...

2018-03-01 08:54:11 2156

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除