Skip to content

Commit

Permalink
fix README code
Browse files Browse the repository at this point in the history
  • Loading branch information
jsfenfen committed Sep 22, 2017
1 parent 1744023 commit ff29ec3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ We're using the "object_id" 201533089349301428 to refer to the Dec. 2014 990 fil

>>> from irsx.xmlrunner import XMLRunner
>>> xml_runner = XMLRunner()
>>> parsed_filing = xml_runner.run_schedule(201533089349301428, 'IRS990ScheduleJ')
>>> parsed_filing = xml_runner.run_sked(201533089349301428, 'IRS990ScheduleJ')
>>> key_employees = parsed_filing.get_result()[0]['groups']['SkdJRltdOrgOffcrTrstKyEmpl']
>>> for employee in key_employees:
print(employee['PrsnNm'])
Expand Down Expand Up @@ -227,13 +227,13 @@ Let's use Sutter Health Sacramento Sierra Region's 12/2014 filing, which has an
Much broader functionality is available by running from within python.


>>> from irsx.runner import XMLRunner
>>> from irsx.xmlrunner import XMLRunner
>>> xml_runner = XMLRunner()
>>> result = xml_runner.run_filing(201533089349301428)

Result is an array of schedules; each schedule's name can be accessed as result[i]['schedule_name']. Note that this filing has *3* different schedule K's in it. Only schedule K is allowed to repeat--all other lettered schedules (i.e. Schedules A-O and R) may only appear once. If we only care about one schedule we can extract it (though note that the result will still be an array of schedules).

>>> parsed_filing = xml_runner.run_schedule(201533089349301428, 'IRS990ScheduleJ')
>>> parsed_filing = xml_runner.run_sked(201533089349301428, 'IRS990ScheduleJ')
>>> result = parsed_filing.get_result()

Show the repeating groups that are present this schedule:
Expand Down

0 comments on commit ff29ec3

Please sign in to comment.