Skip to content

Instantly share code, notes, and snippets.

@seniorpreacher
Last active November 9, 2020 20:28
Show Gist options
  • Save seniorpreacher/0090beef2a5e3a1f917ae63fc3deb550 to your computer and use it in GitHub Desktop.
Save seniorpreacher/0090beef2a5e3a1f917ae63fc3deb550 to your computer and use it in GitHub Desktop.
List all FoxPost automatas into a JSON
$$('.apt-list__list .apt-list__item').map(parent => ({
name: parent.querySelector('.apt-list__item-name').textContent,
address: parent.querySelector('.apt-list__item-address').textContent,
/*findMe: parent.querySelector('.apt-list__item-find-me').textContent,*/
}))
.map(place => `<option value="${place.name}">${place.name} (${place.address})</option>`).join('\n')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment