-
Notifications
You must be signed in to change notification settings - Fork 63
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove fotmob
functions
#311
Conversation
Codecov Report
❗ Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more. @@ Coverage Diff @@
## main #311 +/- ##
==========================================
- Coverage 67.72% 62.74% -4.98%
==========================================
Files 49 43 -6
Lines 4065 3358 -707
==========================================
- Hits 2753 2107 -646
+ Misses 1312 1251 -61
|
@@ -411,16 +411,3 @@ | |||
session <- rvest::session(url = page_url, ua) | |||
xml2::read_html(session) | |||
} | |||
|
|||
#' @importFrom httr GET content |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
these functions were only used by fotmob functions
@@ -300,12 +300,12 @@ test_that("fb_team_player_stats() works", { | |||
Sys.sleep(3) | |||
test_that("fb_team_match_log_stats() works", { | |||
testthat::skip_on_cran() | |||
liv_keeper_log <- fb_team_match_log_stats(team_url= "https://fbref.com/en/squads/822bd0ba/Liverpool-Stats", stat_type= 'keeper', time_pause = 4) | |||
liv_keeper_log <- fb_team_match_log_stats(team_url= "https://fbref.com/en/squads/822bd0ba/2022-2023/Liverpool-Stats", stat_type= 'keeper', time_pause = 4) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
drive by fix: this was failing, i think because it was looking for 2023/2024 stats
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for all your work on this @tonyelhabr
Fotmob updated their terms of service stating that "the use of automatic services (robots, spiders, indexing etc.) as well as other methods for systematic or regular use is not permitted." While "robots, spiders, etc." doesn't necessarily imply data scraping is off limits, the fotmob CEO has written us something akin to a "cease and desist" notice insisting that we remove our fotmob functions. We're not in a position to counter, so we've decided to comply.