Open damahala opened 2 months ago
It seems like the cloudscraper might not working properly. It can no longer bypass the cloudscraper's robot prevention so will always return Just a moment page. Can't simply upgrade cloudscraper as the latest 1.2.7.1 won't work on 2.7 python.
The easiest way to solve this issue might be just install the https://github.com/FlareSolverr/FlareSolverr docker and replace the cloudscraper's get to FlareSolverr. It works fine after replacing:
web_data = scraper.get(url).content.decode("utf-8")
with
@staticmethod
def get_scraper_contents(url):
proxyUrl = "http://localhost:8191/v1"
headers = {"Content-Type": "application/json"}
data = {
"cmd": "request.get",
"url": url,
"maxTimeout": 60000
}
response = requests.post(proxyUrl, headers=headers, json=data)
jsonData = json.loads(response.text)
return jsonData['solution']['response']
web_data = self.get_scraper_contents(url)
Now when try to pull data from javlibrary:
If copy the url to browser, it display normally, but if try to refresh metadata or find match, no result shows up.