Advertisement
Guest User

Untitled

a guest
Feb 22nd, 2019
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. result = re.findall(r'<td align="left" csk="(dddd)dddd"><a href=.?*>(.*?)</a></td>s+|<td align="lef(.*?)" >(.*?)</td>s+', webpage)
  2.  
  3. <td align="left" csk="(dddd)dddd"><a href=.?*>(.*?)</a></td>s+
  4.  
  5. <td align="lef(.*?)" >(.*?)</td>
  6.  
  7. from xml.etree import ElementTree
  8.  
  9. tree = ElementTree.parse('filename.html')
  10. for elem in tree.findall('tr'):
  11. print ElementTree.tostring(elem)
  12.  
  13. (?:first_regex)|(?:second_regex)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement