Example #1
0
 def _parse_sections(self, response: Response, folder_root: pathlib.Path):
     section_name = response.css(".ds-section-headline::text").get()
     meta = {'folder_root': folder_root}
     yield from response.follow_all(
         css=".layout-weekly-edition-section .teaser a.headline-link",
         callback=self._parse_article,
         meta=meta)
Example #2
0
 def _parse_world_this_week(self, response: Response,
                            folder_root: pathlib.Path):
     meta = {'folder_root': folder_root}
     yield from response.follow_all(
         css=".layout-weekly-edition-wtw .weekly-edition-wtw__item a",
         callback=self._parse_article,
         meta=meta)