(self)
| 2503 | self.enclosures[-1]['title'] = elm.string |
| 2504 | |
| 2505 | def findXFN(self): |
| 2506 | all = lambda x: 1 |
| 2507 | for elm in self.document(all, {'rel': re.compile('.+'), 'href': re.compile('.+')}): |
| 2508 | rels = elm.get('rel', u'').split() |
| 2509 | xfn_rels = [r for r in rels if r in self.known_xfn_relationships] |
| 2510 | if xfn_rels: |
| 2511 | self.xfn.append({"relationships": xfn_rels, "href": elm.get('href', ''), "name": elm.string}) |
| 2512 | |
| 2513 | def _parseMicroformats(htmlSource, baseURI, encoding): |
| 2514 | if not BeautifulSoup: |
no test coverage detected