获取单独一个table,代码如下:
#!/usr/bin/env python3
# _*_ coding=utf-8 _*_
import csv
from urllib.request import urlopen
from bs4 import BeautifulSoup
from urllib.request import HTTPError
try:
html = urlopen(http://en.wikipedia.org/wiki/Comparison_of_text_editors)
except HTTPError as e:
print(not found