mirror of
https://github.com/edcommonwealth/sqm-dashboards.git
synced 2026-03-07 21:48:16 -08:00
Fix ThreeATwo scraper
This commit is contained in:
parent
28f7d5647e
commit
5b2bae0d92
1 changed files with 7 additions and 7 deletions
|
|
@ -134,14 +134,14 @@ module Dese
|
|||
def run_a_sust_i4(filepath:)
|
||||
run do |academic_year|
|
||||
admin_data_item_id = 'a-sust-i4'
|
||||
url = 'https://profiles.doe.mass.edu/state_report/gradesubjectstaffing.aspx'
|
||||
url = 'https://profiles.doe.mass.edu/statereport/gradesubjectstaffing.aspx'
|
||||
range = academic_year.range
|
||||
selectors = {
|
||||
'ctl00_ContentPlaceHolder1_reportType' => 'School',
|
||||
'ctl00_ContentPlaceHolder1_fyCode' => range,
|
||||
'ctl00_ContentPlaceHolder1_subjectCode' => 'Arts'
|
||||
}
|
||||
submit_id = 'ctl00_ContentPlaceHolder1_Continue'
|
||||
|
||||
selectors = { 'ctl00_ContentPlaceHolder1_ddReportType' => 'School',
|
||||
'ctl00_ContentPlaceHolder1_ddYear' => range,
|
||||
'ctl00_ContentPlaceHolder1_ddDisplay' => 'Full-time Equivalents',
|
||||
'ctl00_ContentPlaceHolder1_ddSubject' => 'Arts' }
|
||||
submit_id = 'btnViewReport'
|
||||
calculation = lambda { |_headers, items|
|
||||
num_of_art_teachers = items.last.to_f
|
||||
dese_id = items[1].to_i
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue