(html)
| 308 | |
| 309 | // villagetr |
| 310 | function parseVillage(html) { |
| 311 | let $ = renderDom(html); |
| 312 | let result = []; |
| 313 | $("tr.villagetr").each(function(index, element) { |
| 314 | let td0 = $(this).find("td").first(); |
| 315 | let td1 = $(this).find("td").last(); |
| 316 | let id = td0.text(); |
| 317 | let name = td1.text(); |
| 318 | result.push({ |
| 319 | id: id, |
| 320 | name: name, |
| 321 | }); |
| 322 | }); |
| 323 | |
| 324 | return result; |
| 325 | } |
| 326 | |
| 327 | |
| 328 | function pullCountryDataSync(cityPath, offset) { |
no test coverage detected