hibikidesu / javscraper

Python library for scraping JAVs
GNU General Public License v3.0
40 stars 9 forks source link

no result appear #2

Closed sugizo closed 4 months ago

sugizo commented 4 months ago

code taken from github

from javscraper import *
javlibrary = JAVLibrary()

result

print(javlibrary.search("SSIS-001"))
[]
print(javlibrary.get_video("SSIS-001"))
None

expected result should show some data, e.g. title, length, cast, etc like seen via browser

best regards

hibikidesu commented 4 months ago

Is there anything blocking javlibrary, I can get results fine for that video code. You can set the debug attribute on the class to see if there are any issues.

>>> javlibrary = JAVLibrary()
>>> javlibrary.debug = True
>>> javlibrary.get_video("SSIS-001")
Path: /en/vl_searchbyid.php?keyword=SSIS-001
URL: https://www.javlibrary.com/en/vl_searchbyid.php?keyword=SSIS-001
Items: [<Element a at 0x24686ee9a90>, ...
sugizo commented 4 months ago

execute with debug javlibrary.search("SSIS-001")

Path: /en/vl_searchbyid.php?keyword=SSIS-001
URL: https://www.javlibrary.com/en/vl_searchbyid.php?keyword=SSIS-001
Failed to make request, 403
[]

javlibrary.get_video("SSIS-001")

Path: /en/vl_searchbyid.php?keyword=SSIS-001
URL: https://www.javlibrary.com/en/vl_searchbyid.php?keyword=SSIS-001
Failed to make request, 403

detail

env : google colab
os : ubuntu jammy
python : 3.10.12
javscraper : 1.2.0

best regards