Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save DustinAlandzes/a10a05232e3207b8eb67a8af1b5b9112 to your computer and use it in GitHub Desktop.
Save DustinAlandzes/a10a05232e3207b8eb67a8af1b5b9112 to your computer and use it in GitHub Desktop.
[2019-06-14 23:43:56,035] ERROR [Process: MainProcess Id:55826] [Thread: MainThread Id: 140736302633920] [scrapy.core.scraper._itemproc_finished:234] Error processing {'case_json': {'aws_cache_link': 'https://s3.console.aws.amazon.com/s3/buckets/scrapy-appeal-spiders/staging/mn-appeals/parse_item_page/A19-0914/2019-06-14-23:43.html',
'case_number': 'A19-0914',
'case_type': 'Civil',
'external_source_link': 'http://macsnc.courts.state.mn.us/ctrack/view/publicCaseMaintenance.do?csNameID=94073&csInstanceID=106681',
'internal_sub_project': 'mn-appeals',
'start_date': '06/13/2019',
'status': 'Pre-Briefing',
'title': 'In re the Matter of the Welfare of the Children of: '
'R. L. W. and J. P. W., Parents.'},
'parties_list': [{'attorneys': [],
'aws_cache_link': 'https://s3.console.aws.amazon.com/s3/buckets/scrapy-appeal-spiders/staging/mn-appeals/parse_item_page/A19-0914/2019-06-14-23:43.html',
'full_name': 'F. A. H.',
'internal_sub_project': 'mn-appeals',
'type': 'Appellant'},
{'attorneys': [],
'aws_cache_link': 'https://s3.console.aws.amazon.com/s3/buckets/scrapy-appeal-spiders/staging/mn-appeals/parse_item_page/A19-0914/2019-06-14-23:43.html',
'full_name': 'Brown County Human Services',
'internal_sub_project': 'mn-appeals',
'type': 'Respondent'},
{'attorneys': [],
'aws_cache_link': 'https://s3.console.aws.amazon.com/s3/buckets/scrapy-appeal-spiders/staging/mn-appeals/parse_item_page/A19-0914/2019-06-14-23:43.html',
'full_name': 'Shiree Oliver',
'internal_sub_project': 'mn-appeals',
'type': 'Respondent'}],
'response_meta': "{'case_json': {'title': 'In re the Matter of the Welfare of "
"the Children of: R. L. W. and J. P. W., Parents.', "
"'case_number': 'A19-0914', 'status': 'Pre-Briefing', "
"'case_type': 'Civil', 'start_date': '06/13/2019', "
"'external_source_link': "
"'http://macsnc.courts.state.mn.us/ctrack/view/publicCaseMaintenance.do?csNameID=94073&csInstanceID=106681'}, "
"'depth': 4, 'type': 'parse_item_page', 'dupefilter_fp': "
"'A19-0914', 'exception': False, 'proxy': "
"'http://10.72.12.239:50020', 'download_timeout': 100.0, "
"'download_slot': 'macsnc.courts.state.mn.us', "
"'download_latency': 111.29338383674622, 'aws_cache_link': "
"'https://s3.console.aws.amazon.com/s3/buckets/scrapy-appeal-spiders/staging/mn-appeals/parse_item_page/A19-0914/2019-06-14-23:43.html'}",
'response_url': 'http://macsnc.courts.state.mn.us/ctrack/view/publicCaseMaintenance.do?csNameID=94073&csInstanceID=106681',
'spider': 'mn-appeals'}
Traceback (most recent call last):
File "/Users/f00/anaconda/envs/appeal-pipeline/lib/python3.7/site-packages/twisted/internet/defer.py", line 654, in _runCallbacks
current.result = callback(current.result, *args, **kw)
File "/Users/f00/dev/Appeal-pipeline/appeals/pipelines.py", line 142, in process_item
spider=spider
File "/Users/f00/dev/Appeal-pipeline/appeals/pipelines.py", line 119, in handle_parties_and_attorneys
self.handle_attorneys(attorneys, case, party_obj, party, items, spider)
File "/Users/f00/dev/Appeal-pipeline/appeals/pipelines.py", line 77, in handle_attorneys
emails=attorney.get("emails"))
File "/Users/f00/anaconda/envs/appeal-pipeline/lib/python3.7/site-packages/legalist/objects/AttorneyFirm.py", line 18, in __init__
Organization.__init__(self, *args, **kwargs)
File "/Users/f00/anaconda/envs/appeal-pipeline/lib/python3.7/site-packages/legalist/objects/abstract/Organization.py", line 34, in __init__
self.full_name = kwargs.get("full_name", "")
File "/Users/f00/anaconda/envs/appeal-pipeline/lib/python3.7/site-packages/legalist/objects/abstract/Organization.py", line 154, in full_name
raise Exception(f"Empty {self.__class__.__name__} name not allowed")
Exception: Empty AttorneyFirm name not allowed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment