Beautiful soup cheat sheet: ... soup = BeautifulSoup(html_doc, 'html.parser') ... soup.select('a[href="http://example.com/elsie"]') # exact attribute.
確定! 回上一頁