Skip to content

Commit

Permalink
Update paths
Browse files Browse the repository at this point in the history
  • Loading branch information
wkmor1 committed Nov 8, 2024
1 parent 8a7095e commit 3010667
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions download_descriptions.R
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ download_descriptions <- function(taxon) {
taxon_id <- httr::RETRY(
"GET",
url = "https://laji.fi",
path = file.path("taxa", "search"),
path = file.path("api", "taxa", "search"),
query = list(query = taxon)
)

Expand All @@ -23,7 +23,7 @@ download_descriptions <- function(taxon) {
res <- httr::RETRY(
"GET",
url = "https://laji.fi",
path = file.path("taxa", taxon_id, "descriptions"),
path = file.path("api", "taxa", taxon_id, "descriptions"),
query = list(lang = "multi")
)

Expand Down
4 changes: 2 additions & 2 deletions download_photos.R
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ download_file <- function(taxon, path = "var/data/sp_images/org") {
taxon_id <- httr::RETRY(
"GET",
url = "https://laji.fi",
path = file.path("taxa", "search"),
path = file.path("api", "taxa", "search"),
query = list(query = taxon)
)

Expand All @@ -31,7 +31,7 @@ download_file <- function(taxon, path = "var/data/sp_images/org") {
res <- httr::RETRY(
"GET",
url = "https://laji.fi",
path = file.path("taxa", taxon_id, "media")
path = file.path("api", "taxa", taxon_id, "media")
)

res <- httr::content(res)
Expand Down

0 comments on commit 3010667

Please sign in to comment.