Skip to content

Commit

Permalink
Merge pull request #22 from cbaltzer/women-tech-scraping
Browse files Browse the repository at this point in the history
Added missing scraping code
  • Loading branch information
ErikaBraith authored Mar 21, 2019
2 parents 0de494d + a8a8cce commit b95d17e
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions 20190319_women-tech/20190321-meetup-slides-women-tech.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ We collected data from several sources
Package: Source: https://github.com/rladies/meetupr

```{r meetup-data, eval = FALSE, tidy = TRUE}
# Get an API key from here: https://secure.meetup.com/meetup_api/key/
Sys.setenv(MEETUP_KEY = "PASTE YOUR MEETUP KEY HERE")
# Slow function so we don't hit the Meetup rate limit
# From here: https://github.com/rladies/meetupr/issues/30#issuecomment-379900167
Expand Down Expand Up @@ -136,6 +137,15 @@ kable(keywords,
## Filtering tech groups

```{r filter-groups, eval = FALSE}
# Fetch all groups matching the keywords above
fetch_results <- map(keywords, slowly(safely(find_groups)))
# meetupr returns a list with a result and error entry for each keyword
# We only want the results, so pull those out and bind them into one table
all_results <- fetch_results %>%
map("result") %>%
bind_rows()
# Filter tech groups, and unique (just in case)
unique_groups = all_results %>%
select(id, name, urlname, created, members, status, city, state, country, who, organizer_id, organizer_name, category_id, category_name) %>%
Expand Down

0 comments on commit b95d17e

Please sign in to comment.