danielredondo / rfutbin

R package to get prices, stats and more information for FIFA Ultimate Team players in Futbin.
MIT License
16 stars 3 forks source link

rfutbin not working due to Cloudfare captcha #2

Open danielredondo opened 2 years ago

danielredondo commented 2 years ago

rfutbin is currently not working due to Futbin using Cloudfare to limit web-scraping via a captcha.

Small reprex of the issue:

library(httr)
library(dplyr)
web <- httr::GET("https://www.futbin.com/21/players?page=1&search=Lionel+Messi") 
print(web)
Response [https://www.futbin.com/21/players?page=1&search=Lionel+Messi]
  Date: 2022-01-22 20:03
  Status: 403
  Content-Type: text/html; charset=UTF-8
  Size: 12.3 kB
<!DOCTYPE html>
<!--[if lt IE 7]> <html class="no-js ie6 oldie" lang="en-US"> <![endif]-->
<!--[if IE 7]>    <html class="no-js ie7 oldie" lang="en-US"> <![endif]-->
<!--[if IE 8]>    <html class="no-js ie8 oldie" lang="en-US"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js" lang="en-US"> <!--<![endif]-->
<head>

<title>Please Wait... | Cloudflare</title>

<meta name="captcha-bypass" id="captcha-bypass" />
...
chenei commented 2 years ago

@danielredondo thanks for the app. Any plans to fix this issue?

danielredondo commented 2 years ago

@chenei Unfortunately, as of now, I think there is no way to pass a Cloudfare captcha in an automated way.