有没有办法可以使用 python 从网页中检索广告网址?例如 (http://www.quiltingboard.com/resources/) 我想检索顶部和右侧广告的 url。那可能吗?
问问题
74 次
2 回答
0
Your best bet is to use Beautiful Soup (PyPI name beautifulsoup4
) -- it gives a nice interface for getting what you want out of the page. Docs are here. It can use several different HTML/XML parsers, from the built-in stuff to html5lib
or lxml
.
于 2012-11-02T23:32:59.300 回答