Request loadString with Cloudflare


I have widget that crawl a website. Since few days, the website is using cloudflare (Checking your browser before accessing…please wait 5 seconds) breaking my widget because the loadString returns the html text of this check instead of the html text of the website itself.

Is there a workaround to avoid that ? Waiting 5 secs before resending the request ? Send a cookie ?

Thanks for your help !

You could load the website in a WebView and wait there, then grab the HTML with .getHTML().