AugustT / BioHack_iNat

Biohackaton 2021 - Team investigating recorder behaviour on iNaturalist
GNU General Public License v3.0
1 stars 0 forks source link

non-spanish records being picked up by inaturalist api query #6

Open simonrolph opened 2 years ago

simonrolph commented 2 years ago

Possibly use Use rinat::get_inat_obs rather than hacked get_inat_obs_user in case that fixes the non-spain records error. Or just write a function that uses the api

simonrolph commented 2 years ago
# NOT IN USE:
#new approach using: https://api.inaturalist.org/v1/docs/#!/Observations/get_observations
# res = GET("https://api.inaturalist.org/v1/observations",
#   query = list(user_id = recorded_by[2],
#                per_page = 5000,
#                search_on = "place",
#                q = "Spain"))
# 
# data = fromJSON(rawToChar(res$content))
# data$results %>% nrow()
# saveRDS(user_observations,paste0("2_Generating_iNat_RM_Baseline/data/user_obvs/observations_",usernames[i],".rds"))