我想提取給定網站上的所有hashtags: 例如,「我喜歡#堆溢出,因爲#人很有幫助!」 這應該將3個哈希標籤拉入表格中。 在網站上,我針對有一個#tag描述 表因此,我們可以發現這#love#標籤談到愛情 這是我的工作: #import the library used to query a website
import urllib2
#specify the url
我正在讀取xliff文件並計劃檢索特定元素。我試着用打印的所有元素 from lxml import etree
with open('path\to\file\.xliff', 'r',encoding = 'utf-8') as xml_file:
tree = etree.parse(xml_file)
root = tree.getroot()
for eleme