Skip to content

Commit e463b48

Browse files
authored
Merge pull request #2218 from Net005/master
Update JavLibrary_python
2 parents 05c959b + 9725c68 commit e463b48

File tree

2 files changed

+13
-3
lines changed

2 files changed

+13
-3
lines changed

scrapers/JavLibrary_python/JavLibrary_python.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -437,7 +437,8 @@ def bypass_protection(url):
437437

438438
log.info(f"Using FlareSolverr: {FLARESOLVERR_URL}")
439439
log.info(f"Javlibrary input url: {url_n}")
440-
responseJson = requests.post(FLARESOLVERR_URL, headers=headers, json=data)
440+
cookies = {'over18': '18'}
441+
responseJson = requests.post(FLARESOLVERR_URL, cookies=cookies, headers=headers, json=data)
441442
json_input = responseJson.json()
442443

443444
response_html.content = json_input['solution']['response']
@@ -473,7 +474,7 @@ def bypass_protection(url):
473474
return None, None
474475

475476

476-
def send_request(url, head, retries=0, delay=1):
477+
def send_request(url, head, retries=0, delay=2.5):
477478
if retries > 3:
478479
log.warning(f"Scrape for {url} failed after retrying {retries} times")
479480
return None

scrapers/JavLibrary_python/JavLibrary_python.yml

+10-1
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,13 @@ sceneByQueryFragment:
1818
- python
1919
- JavLibrary_python.py
2020
- validSearch
21-
# Last Updated April 4, 2024
21+
sceneByURL:
22+
- action: script
23+
url:
24+
- www.javlibrary.com/
25+
- javlibrary.com/
26+
script:
27+
- python
28+
- JavLibrary_python.py
29+
- validSearch
30+
# Last Updated March 4, 2025

0 commit comments

Comments
 (0)