const cities = $('tr') .toArray() .filter(x => x.innerText.includes('°')) .map(x => ['name', 'lat', 'lng'].reduce((loc, key, i) => { loc[key] = x.children[i].innerText return loc }, {})) //http://www.mapsofworld.com/lat_long/ukraine-lat-long.html