5
推荐
2916
阅读

【爬虫】找呀找呀找房子

背景特么的一个客厅的隔断要涨到2200!!!!!!版本python 2.7前置条件requests和beautifulsoup4的包包代码import typesimport requestsfrom bs4 import BeautifulSoupoutput = open('ganji.txt','w')res = requests.get('http://bj.ganji.com/fang1/lishuiqiao/a1h3m1/') #lishuiqiaores.encoding = 'utf-8'soup = B...

发表了文章 • 2016-12-02 00:54 • 0 条评论

3
推荐
1716
阅读

爬天善文章列表

版本python2.7准备下载requests和beautifulsoup4pip install requests pip install beautifulsoup4 代码import requests from bs4 import BeautifulSoup for page in range(10):     page = page + 1     res = requests.get('https://ask.hellobi.com/blog/id-xiaerkang_...

发表了文章 • 2016-12-01 17:21 • 3 条评论

3
推荐
1980
阅读

python解析DataStage的XML文件,获取mapping

今天领导分配个任务把所有作业的mapping整理下 要死人啊!用户自己不会看FS吗 - -! 还好能导出XML文件,用python解析了一下,作为记录,后续增强。-- Create table create table INTEGRATION_MAPPING (   downstream_col VARCHAR2(100),   mapping        VARCHAR2(4000), &nb...

发表了文章 • 2016-08-23 00:35 • 2 条评论

2
推荐
1631
阅读

python默认字符集

python2的默认字符集是ascii,如果不指定,则并不一定遵循和操作系统保持一致而我系统的默认字符集是GBK

发表了文章 • 2016-08-22 15:55 • 2 条评论