File tree Expand file tree Collapse file tree 3 files changed +26
-14
lines changed
Expand file tree Collapse file tree 3 files changed +26
-14
lines changed Original file line number Diff line number Diff line change 33573357 <code>description</code>
33583358 </td>
33593359 </tr>
3360+ <tr>
3361+ <td>
3362+ <code>RestOfWorld</code>
3363+ </td>
3364+ <td>
3365+ <div>Rest of World</div>
3366+ </td>
3367+ <td>
3368+ <a href="https://restofworld.org/">
3369+ <span>restofworld.org</span>
3370+ </a>
3371+ </td>
3372+ <td>
3373+ <code>en</code>
3374+ </td>
3375+ <td> </td>
3376+ <td> </td>
3377+ <td> </td>
3378+ </tr>
33603379 <tr>
33613380 <td>
33623381 <code>Reuters</code>
Original file line number Diff line number Diff line change 99from .free_beacon import FreeBeaconParser
1010from .la_times import LATimesParser
1111from .occupy_democrats import OccupyDemocratsParser
12+ from .rest_of_world import RestOfWorldParser
1213from .reuters import ReutersParser
1314from .rolling_stone import RollingStoneParser
1415from .techcrunch import TechCrunchParser
2122from .washington_times import WashingtonTimesParser
2223from .wired import WiredParser
2324from .world_truth import WorldTruthParser
24- from .rest_of_world import RestOfWorldParser
2525
2626
2727class US (metaclass = PublisherGroup ):
@@ -275,14 +275,13 @@ class US(metaclass=PublisherGroup):
275275 Sitemap ("https://www.wired.com/sitemap-archive-1.xml" ),
276276 ],
277277 )
278-
278+
279279 RestOfWorld = Publisher (
280280 name = "Rest of World" ,
281281 domain = "https://restofworld.org/" ,
282282 parser = RestOfWorldParser ,
283283 sources = [
284284 RSSFeed ("https://restofworld.org/feed/latest/" ),
285285 Sitemap ("https://restofworld.org/sitemap.xml" ),
286- ]
287-
286+ ],
288287 )
Original file line number Diff line number Diff line change @@ -17,15 +17,9 @@ class RestOfWorldParser(ParserProxy):
1717 class V1 (BaseParser ):
1818 VALID_UNTIL = date .today ()
1919
20- _summary_selector : CSSSelector = CSSSelector (
21- "div.post-subheader__summary li, p.post-header__text__dek"
22- )
23- _paragraph_selector : CSSSelector = CSSSelector (
24- "div.post-content > p"
25- )
26- _subheadline_selector : CSSSelector = CSSSelector (
27- "div.post-content > h2"
28- )
20+ _summary_selector : CSSSelector = CSSSelector ("div.post-subheader__summary li, p.post-header__text__dek" )
21+ _paragraph_selector : CSSSelector = CSSSelector ("div.post-content > p" )
22+ _subheadline_selector : CSSSelector = CSSSelector ("div.post-content > h2" )
2923
3024 @attribute
3125 def body (self ) -> Optional [ArticleBody ]:
@@ -64,4 +58,4 @@ def images(self) -> List[Image]:
6458 "(./ancestor::figure//*[contains(@class, 'credit') or contains(@class, 'byline')])[last()]"
6559 ),
6660 relative_urls = True ,
67- )
61+ )
You can’t perform that action at this time.
0 commit comments