Last active
November 9, 2020 20:28
-
-
Save seniorpreacher/0090beef2a5e3a1f917ae63fc3deb550 to your computer and use it in GitHub Desktop.
List all FoxPost automatas into a JSON
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$$('.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