2017年9月27日

python 爬虫利器xpath

摘要: 经过几个版本的摸索,爬虫这块由原来的正则到后来的bs4,一直都觉得很麻烦,后面用上了xpath从此爱上,做一下简单的记录 阅读全文

posted @ 2017-09-27 10:04 z-shang 阅读(124) 评论(0) 推荐(0) 编辑

python 使用mysql

摘要: 使用的python版本3.x 导入包 import pymysql.cursors # 连接数据库 connect = pymysql.Connect( host='192.168.1.80', port=3306, user='root', passwd='121212', db='test', charset='utf8' ) 普通操... 阅读全文

posted @ 2017-09-27 09:58 z-shang 阅读(111) 评论(0) 推荐(0) 编辑

导航