Sets the lxml root, also sets lxml roots of all children links, also sets description
(self)
| 183 | self.feeds = [f for f in self.feeds if f.rss] |
| 184 | |
| 185 | def parse(self): |
| 186 | """Sets the lxml root, also sets lxml roots of all |
| 187 | children links, also sets description |
| 188 | """ |
| 189 | # TODO: This is a terrible idea, ill try to fix it when i'm more rested |
| 190 | self.doc = self.config.get_parser().fromstring(self.html) |
| 191 | if self.doc is None: |
| 192 | print('[Source parse ERR]', self.url) |
| 193 | return |
| 194 | self.set_description() |
| 195 | |
| 196 | def parse_categories(self): |
| 197 | """Parse out the lxml root in each category |