Created
April 3, 2018 19:55
-
-
Save rviscomi/96aa2b98e404cc2cb0ea06596b55221d to your computer and use it in GitHub Desktop.
Scrapes a Meetup.com topic's "All Meetups" page to extract name, location, and membership info.
This file contains hidden or 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
meetups = Array.from(document.querySelectorAll('.gridList-item')).map(i => { | |
name = i.querySelector('a span').innerText; | |
where = i.querySelector('span a').innerText; | |
members = parseInt(i.querySelector('.text--secondary').innerText.match(/([\d\,]+)/)[0].replace(',', '')); | |
return {name, members, where}; | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment