Skip to content

Instantly share code, notes, and snippets.

@rviscomi
Created April 3, 2018 19:55
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rviscomi/96aa2b98e404cc2cb0ea06596b55221d to your computer and use it in GitHub Desktop.
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.
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