iamrony777 / javinfo-api

An API to scrape Japanese adult video data from various sites
59 stars 17 forks source link

I got error running the latest build docker #34

Closed lucius100 closed 3 months ago

lucius100 commented 4 months ago

Traceback (most recent call last): File "/app/app.py", line 7, in from src.routes import jav, non_jav, rss File "/app/src/init.py", line 16, in javdbProvider = Javdb() ^^^^^^^ File "/app/src/providers/javdb.py", line 45, in init "remember_me_token": quote(getenv("REMEMBER_ME_TOKEN")), ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/urllib/parse.py", line 907, in quote return quote_from_bytes(string, safe) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/urllib/parse.py", line 937, in quote_from_bytes raise TypeError("quote_from_bytes() expected bytes") TypeError: quote_from_bytes() expected bytes

Any Idea ? And it seems like javdtbs having issues, the script keep hanging when searching this provider javdb always return no result javlib don't bother to try anymore without proxy, the working one right now only r18 looks like they tried to block scraper now.

iamrony777 commented 3 months ago

https://github.com/iamrony777/javinfo-api/blob/v3/SETUP.md#javdbcom-cookies

lucius100 commented 3 months ago

https://github.com/iamrony777/javinfo-api/blob/v3/SETUP.md#javdbcom-cookies

It's not the problem with cookies, did u try it already ? Did it work on your side ? I also added the cookies but got error forbidden

EnKuldes commented 2 months ago

https://github.com/iamrony777/javinfo-api/blob/v3/SETUP.md#javdbcom-cookies

It's not the problem with cookies, did u try it already ? Did it work on your side ? I also added the cookies but got error forbidden

based on this stackoverflow, I think you need to add str function to this 2 lines at src/providers/javdb.py

image