Skip to content

Commit

Permalink
One of the h2 doesn't contain time data
Browse files Browse the repository at this point in the history
  • Loading branch information
katkad committed Apr 4, 2017
1 parent cbcc741 commit e75bd99
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions scraper.pl
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,9 @@
remove_trailing(\$title);
my $link = URI->new($base_uri->scheme.'://'.$base_uri->host.
$title_a->attr('href'));
if (!$title_h2->find_by_attribute('class', 'date')) {
next;
}
my $date_start = get_db_date_word($title_h2
->find_by_attribute('class', 'date')->as_text);

Expand Down

0 comments on commit e75bd99

Please sign in to comment.