TWJolly / fundraising_data_pull

Pulls data from the JustGiving API for a defined set of charities and highlights new pages
1 stars 1 forks source link

get_charity_fundraising_pages function captures too much #17

Closed daaronr closed 5 years ago

daaronr commented 5 years ago

get_charity_fundraising_pages function (in functions.r) captures too much

Run in just_giving_data pull as

#Get all fundraisers for target charities (just basic information)
fundraiser_search_data <-   map2(charity_data$charity_name, charity_data$regno, get_charity_fundraising_pages) %>%   reduce(bind_rows) 

with charities from file effective_charities.csv

is capturing many pages with one of the words in the charities' name somewhere in the entry; e.g., charity=="The Carter Center Inc" includes pages with 'carter' or 'the' in the entry somewhere.

I thought I'd fixed this already but can't find/remember/recover the fix.