- 博客(3)
- 资源 (4)
- 收藏
- 关注
原创 Crawl AJAX dynamic web page using Python 2.x and 3.x
The term AJAX is short for Asynchronous Javascript and XML. It uses the Javascript XMLHttpRequest function to create a tunnel between the client's browser and the server to transmit information back a
2016-06-25 05:36:42 772
原创 Crawl GB2312 encoded webpages with Python 3.x
The following code works well. from urllib.request import urlopen import bs4 doc= urlopen("http://www.w3school.com.cn/html/html_tables.asp") soup = bs4.BeautifulSoup(doc,fromEncoding="GB2312") a=s
2016-06-25 01:44:36 718
原创 detect the encoding of files in Python
I found a very useful Python package for detecting the encoding of files. It's chardet. 1. install chardet pip install chardet 2. an example of how to use it Python 2 import urllib rawdata
2016-06-23 23:46:30 652
兔子过河C语言代码小游戏
2009-08-25
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人