Description Usage Arguments Value Examples
futbin_scrap extracts all players of a Futbin URL.
1 | futbin_scrap(url, platform = "ps4", sleep_time = 5, verbose = TRUE)
|
url |
Futbin URL to web scrap. Futbin webpage (https://www.futbin.com/players) can be used to make customised filters, and then copy the URL here. All the players found in the URL (and the next pages) will be automatically detected and downloaded. |
platform |
Platform to get the prices from. Default is 'ps4'. Other options are 'xone' (XBox One) and 'pc'. |
sleep_time |
Time (in seconds) ellapsed between scraping one page and the next one. Please respect Futbin API. |
verbose |
Optional. To show additional verbose about webpage used and number of players found. |
A dataframe with all the players found at the URL.
1 2 3 4 5 6 7 8 | ## Not run:
# Aston Villa players -> To get the URL, go to futbin.com/players and filter
futbin_scrap(url = "https://www.futbin.com/players?page=1&club=2")
# Spanish centre-backs from La Liga -> To get the URL, go to futbin.com/players and filter
futbin_scrap(url = "https://www.futbin.com/players?page=1&nation=45&league=53&position=CB")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.