Skip to content
This repository has been archived by the owner. It is now read-only.

Incorrect parsing for multiple deceased #178

Closed
rgreinho opened this issue Aug 19, 2019 · 0 comments · Fixed by #179
Closed

Incorrect parsing for multiple deceased #178

rgreinho opened this issue Aug 19, 2019 · 0 comments · Fixed by #179
Labels
kind/bug

Comments

@rgreinho
Copy link
Member

@rgreinho rgreinho commented Aug 19, 2019

Issue Type

  • Bug report

Current Behavior

The deceased fields were split into 2 lines, throwing the parser off:

<p>	<strong>Deceased 1:&nbsp; </strong>Cedric Benson | Black male | 12/28/1982</p>
<p>	<strong>Deceased 2:&nbsp; </strong>Aamna Najam | Asian female | 01/26/1992</p>

Bellow the error reported by the scraper:

2019-08-19T16:01:26-0500 scrapd.core.apd:842  Fatality report http://austintexas.gov/news/traffic-fatality-50-3 was not parsed correctly:
	 * could not retrieve the deceased information
	 * age is invalid: None

Expected Behavior

The scraper should be able to read this type of information. At least extract the information from the first line.

@rgreinho rgreinho added the kind/bug label Aug 19, 2019
rgreinho added a commit to rgreinho/scrapd that referenced this issue Aug 21, 2019
This fix help accounting for multiple death in one crash. It ensures
that only the information about the first fatality is returned.

Fixes scrapd#178
rgreinho added a commit that referenced this issue Aug 22, 2019
This fix help accounting for multiple death in one crash. It ensures
that only the information about the first fatality is returned.

Fixes #178
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
kind/bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant