Skip to content

Commit

Permalink
[NextgovBridge] Update categories, fix missing element (#2316)
Browse files Browse the repository at this point in the history
  • Loading branch information
ORelio authored Oct 29, 2021
1 parent 547829f commit 1c6532a
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions bridges/NextgovBridge.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,10 @@ class NextgovBridge extends FeedExpander {
'Technology News' => 'technology-news',
'CIO Briefing' => 'cio-briefing',
'Emerging Tech' => 'emerging-tech',
'Cloud' => 'cloud-computing',
'Cybersecurity' => 'cybersecurity',
'Mobile' => 'mobile',
'Health' => 'health',
'Defense' => 'defense',
'Big Data' => 'big-data'
'IT Modernization' => 'it-modernization',
'Policy' => 'policy',
'Ideas' => 'ideas',
)
)
));
Expand Down Expand Up @@ -61,7 +59,6 @@ private function extractContent($url){
return 'Could not request Nextgov: ' . $url;

$contents = $article->find('div.wysiwyg', 0);
$contents->find('svg.content-tombstone', 0)->outertext = '';
$contents = $contents->innertext;
$contents = stripWithDelimiters($contents, '<div class="ad-container">', '</div>');
$contents = stripWithDelimiters($contents, '<div', '</div>'); //ad outer div
Expand Down

0 comments on commit 1c6532a

Please sign in to comment.