python - Transfering from Beautiful Soup to LXML -


अगर मेरे पास बीएस 4 में कोड है:

  shopping_bag_body = html_tree.find ('table' ('टीडी', एट्रर्स = {'क्लास': 'कॉलम- 5 '})। (' Span ', attrs = {' class ':' price '})  

ऐसे मामलों में बजाय एलएक्सएमएल xpath का उपयोग कैसे करें?


Comments

Popular posts from this blog

java - Can't add JTree to JPanel of a JInternalFrame -

c++ - Qt-how to convert a QByteArray to struct -

c# - How to know the number of Threads created and limit the Tasks accordingly -