摘要:
#url初始化 from pyquery import PyQuery as pq doc = pq(url='http://www.taobao.com') print(doc('head')) ''' 输出结果: 淘宝网 - 淘!我喜欢 ''' 阅读全文
摘要:
'' 拿出html里面的所有li ''' html = ''' first item second item third item fourth item fifth item ''' from pyquery import PyQuery as pq doc = pq(html... 阅读全文