title: Web scraping through maps nested in a map
body: <p>I have <a href="https://data.electionsportal.ge/en/event_type/1/event/2/shape/53148/shape_type/1?data_type=official" rel="nofollow noreferrer">a web page with a map containing districts</a>. I can click on the different districts of this map and it takes me to the precincts of the district. From this map of the precincts of a given district I can download the csv.</p>
  
  <p><a href="https://i.stack.imgur.com/GKTDz.gif" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/GKTDz.gif" alt="![enter image description here"></a></p>
  
  <p>I would like to get them all. How do I browse all the districts of the map with a script ?</p>
  
  <p>I tried to look at what made the map to get the coordinates of the polygons that represents the district but it seems to be from a script when looking at <a href="http://view-source:https://data.electionsportal.ge/en/event_type/1/event/2/shape/53148" rel="nofollow noreferrer">the source page</a> :</p>
  
  <pre><code>...
      &lt;script type="text/javascript"&gt;
  //&lt;![CDATA[
  window.gon={};gon.is_mobile=false;gon.is_bot=false;gon.is_ie=false;gon.no_data_text="No Data";gon.no_data_color="#CCCCCC";gon.tile_url="https://tile.openstreetmap.org/${z}/${x}/${y}.png";gon.openlayers_img_path="/assets/img/";gon.datatable_i18n_url="";gon.is_voters_list=false;gon.shape_path="/en/json/shape/53148/shape_type/1";gon.children_shapes_path="/en/json/custom_children_shapes/53148/shape_type/3";gon.data_path="/en/json/summary_custom_children_data/53148/shape_type/3/event/2/indicator_type/2?custom_view=true&amp;data_set_id=2&amp;data_type=official";gon.indicator_menu_data_path_summary="/en/json/summary_custom_children_data/53148/shape_type/3/event/2/indicator_type/xxx?custom_view=true&amp;data_set_id=2&amp;data_type=official";gon.indicator_menu_data_path="/en/json/custom_children_data/53148/shape_type/3/event/2/indicator/xxx?custom_view=true&amp;data_set_id=2&amp;data_type=official";gon.summary_view_type_name="summary";gon.indicator_description="District Winners";gon.event_id="2";gon.event_name="2008 Presidential";gon.map_title="Country: Georgia - Districts";gon.parent_shape_id="53148";gon.data_type="official";gon.data_type_live="live";gon.data_set_id="2";gon.data_set_id_most_recent=2;gon.history_url="https://data.electionsportal.ge/en/event_type/1/event/2/shape_type/1/shape/53148/indicator_type/2/view_type/summary/custom_view/true";gon.history_id=2;gon.data_table_path="/en/data_table/event_type/1/event/2/shape/53148/shape_type/1/child_shape_type/3/indicator/null/view_type/summary/summary_view_type/summary/custom_view/true?data_set_id=2&amp;data_type=official&amp;ind_order_explanation=Country%3A+Georgia&amp;indicator_type_id=2";gon.dt_highlight_shape=false;gon.indicator_menu_scale=true;gon.openlayers=true;
  //]]&gt;
  &lt;/script&gt;
  ...
  </code></pre>
  
  <p>So I can't get map bbox coordinates when entering and the size in Window pixels to make a transformation from map coordinates to pixels on screen in order to click on the correct places on the screen.</p>