小编Jcc*_*ria的帖子

BeautifulSoup HTMLParseError

Python新手,有一个简单的情境问题:

尝试使用BeautifulSoup来解析一系列页面.

from bs4 import BeautifulSoup
import urllib.request

BeautifulSoup(urllib.request.urlopen('http://bit.ly/'))
Run Code Online (Sandbox Code Playgroud)

追溯 ...

html.parser.HTMLParseError: expected name token at '<!=KN\x01...

使用Python 3.2在64位Windows上运行.

我需要机械化吗?(这将需要Python 2.X)

python beautifulsoup web-scraping

4
推荐指数
1
解决办法
2177
查看次数

标签 统计

beautifulsoup ×1

python ×1

web-scraping ×1