Skip to main content
7 events
when toggle format what by license comment
Feb 3, 2014 at 17:19 comment added avi makes sense. however product_price_tag_element.children also contains the text along with span as child. So I cannot actually do replace_with('') that would be replacing my text also.
Feb 3, 2014 at 17:08 comment added rolfl it is just a way to make testing for the actual span a bit easier/safer. If there is no child WebRupee span the loop is still safe. Actually, I would even go so far as to recommend product_price_tag_element.children
Feb 3, 2014 at 17:07 comment added avi any reason using for loop? Since there is only one span tag, why not this, or just to be safe?: product_price_tag_element.find('span').replace_with('') price = product_price_tag_element.text.strip()
Feb 3, 2014 at 16:22 vote accept avi
Feb 3, 2014 at 15:30 history edited rolfl CC BY-SA 3.0
optimize the find for the WebRupee class.
Feb 3, 2014 at 14:24 history edited rolfl CC BY-SA 3.0
spelling
Feb 3, 2014 at 12:54 history answered rolfl CC BY-SA 3.0