Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect parsing for multiple deceased #178

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

Comments

@rgreinho
Copy link
Member

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
Fixes multiple death in deceased field
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 rgreinho referenced this issue Aug 21, 2019
1 of 1 task complete
rgreinho added a commit that referenced this issue Aug 22, 2019
Fixes multiple death in deceased field (#179)
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 join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant
You can’t perform that action at this time.