Skip to content

Commit

Permalink
pause arg removed
Browse files Browse the repository at this point in the history
  • Loading branch information
erykwalczak committed May 13, 2021
1 parent f3b3924 commit b4170b8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion R/scrape_menu.R
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ scrape_menu <- function(url, selector, rulebook_date) {
# pull the html nodes
# TODO add ua
nodes_only <-
httr::RETRY("GET", url, times = 5, pause_min = 5, pause_base = 2) %>%
httr::RETRY("GET", url, times = 5) %>%
PRArulebook:::extract_results()

if (is.null(nodes_only)) {
Expand Down
2 changes: 1 addition & 1 deletion R/scrape_rule_id.R
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ scrape_rule_id <- function(url, selector_rule_no, selector_rule_text) {
}

rules_html <-
httr::RETRY("GET", url, times = 5, pause_min = 5, pause_base = 2) %>%
httr::RETRY("GET", url, times = 5) %>%
xml2::read_html()

# pull text
Expand Down
2 changes: 1 addition & 1 deletion R/zzz.R
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
# extract nodes - used in get_content
pull_nodes <- function(x, node_to_pull) {

nodes_only_get <- httr::RETRY("GET", x, times = 5, pause_min = 5, pause_base = 2)
nodes_only_get <- httr::RETRY("GET", x, times = 5)

# check if part is effective
if (httr::status_code(nodes_only_get) == 200) {
Expand Down

0 comments on commit b4170b8

Please sign in to comment.