我的任务是解析 HTML 页面(西里尔文)并提取某些单词。这是我必须解析的网页:http://www.toponymic-dictionary.in.ua/ 。我只得到了页面:
import urllib
from lxml.html import fromstring
url = 'http://www.toponymic-dictionary.in.ua/'
content = urllib.urlopen(url).read()
doc = fromstring(content)
doc.make_links_absolute(url)
HTML代码对我来说相当复杂(使用xpath),所以我不知道如何继续解析。
最佳答案
关于python - Python 中用于从 Web 中提取信息的解析器,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15806187/