KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I'm new to XPath. I'm trying to parse a page using XPath. I need to get information from tag, but escaped apostrophe in title screws up everything. For parsing i use Grab . tag from source: <img src='somelink' border='0' alt='commission:Alfred\'s misadventures' title='commission:Alfred\'s misadventures'> Actual XPath: g.xpath('.//tr/td/a[3]/img').get('title') Returns commission:Alfred\\ Is there any way to fix this? Thanks
Tags (comma-separated)
Save Edits
Cancel