Skip to content

Commit

Permalink
update chrome version user agent
Browse files Browse the repository at this point in the history
  • Loading branch information
JaseZiv committed Jan 13, 2025
1 parent 94a3465 commit 95a6baa
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Type: Package
Package: bettRtab
Title: API wrapper to interact with the betting company TAB
Version: 0.0.1
Version: 0.0.2
Authors@R: c(
person("Jason", "Zivkovic", , "jaseziv83@gmail.com", role = c("aut", "cre", "cph"))
)
Expand Down
1 change: 1 addition & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,5 @@

* `get_race_meet_meta()` not retrying when content returned is empty ("") (0.0.0.8000)
* Manually set a user agent as it appears to be a new requirement of the TAB (0.0.1)
* Update Chrome version in user agent to `Chrome/129.0.0.0` (0.0.2)

2 changes: 1 addition & 1 deletion R/internals.R
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
.RETRY_GET_tab <- function(url) {

headers = c(
`User-Agent` = "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36"
`User-Agent` = "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/129.0.0.0 Safari/537.36"
)

res <- httr::RETRY("GET",
Expand Down

0 comments on commit 95a6baa

Please sign in to comment.