5
推荐
3038
阅读
【爬虫】找呀找呀找房子
背景特么的一个客厅的隔断要涨到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...
3
推荐
1766
阅读
爬天善文章列表
版本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_...
3
推荐
2057
阅读
python解析DataStage的XML文件,获取mapping
今天领导分配个任务把所有作业的mapping整理下 要死人啊!用户自己不会看FS吗 - -! 还好能导出XML文件,用python解析了一下,作为记录,后续增强。-- Create table
create table INTEGRATION_MAPPING
(
downstream_col VARCHAR2(100),
mapping VARCHAR2(4000),
&nb...
2
推荐
1742
阅读
python默认字符集
python2的默认字符集是ascii,如果不指定,则并不一定遵循和操作系统保持一致而我系统的默认字符集是GBK