Giter Site home page Giter Site logo

theodorekrypton / javpy Goto Github PK

View Code? Open in Web Editor NEW
196.0 196.0 35.0 2.88 MB

Enjoy driving on a Javascriptive (originally Pythonic) way to Japanese AV!

License: Apache License 2.0

Dockerfile 0.46% Shell 0.38% JavaScript 99.16%
crawler japanese-av jav javascript porn react

javpy's Introduction

javpy's People

Contributors

dependabot[bot] avatar mico4 avatar phatdatpq avatar theodorekrypton avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

javpy's Issues

提几个问题

我的环境是,Python3.5 ,前后端安装正常。但运行有几个问题:

  1. main.py 应该移到项目根路径下面,不应该放到里面的 JavPy目录,不然使用 python ./main.py 无法启动项目。
  2. 有一个bug , 在 check_request 方法内部,没有检查 request.data 是否有值,这个地方如果是空字符串,会导致decode的500错误。这个错误几乎能稳定重现。
    image
    如上修改后,问题解决。
  3. 前端这个地方,由于使用了 vue 路由的 history模式,导致手动刷新页面会到后端去请求页面,就导致了404的问题,当然如果部署时在nginx配置一下,该问题可以解决,但是开发环境调试就很不方便,特别是输入密码后的跳转,会直接导致404。这个地方,应该可以在前端修改一下配置,或者索性搞成 hash模式。

Add a front-end proxy client

If the server is served at somewhere without network restrictions, front-end proxy client will enable direct connection from the client side to the real video url. Therefore, you don't need to start a VPN on your client device when browsing.

本地部署+v2ray代理,服务端"all sources are down"错误

在本地部署,环境python3.8+chrome,
用v2ray开代理,config里加了代理配置:"proxy": "socks5://127.0.0.1:10808",
浏览器点击new,是下面的错误,看起来像是:

Awesome! Now try to type
    JavPy.serve()
and open http://localhost:8081 to enjoy driving!

If you want to run a telegram bot server, instead, please type
    JavPy.serve_tg(token)
But please get a token from the bot father first

More info: https://github.com/theodorekrypton/JavPy
  • Serving Flask app "JavPy.app.webserver.app" (lazy loading)
  • Environment: production
    WARNING: This is a development server. Do not use it in a production deployment.
    Use a production WSGI server instead.
  • Debug mode: off
  • Running on http://0.0.0.0:8081/ (Press CTRL+C to quit)
    127.0.0.1 - - [19/Feb/2020 11:39:53] "GET / HTTP/1.1" 200 -
    127.0.0.1 - - [19/Feb/2020 11:39:59] "GET /search/video HTTP/1.1" 200 -
    127.0.0.1 - - [19/Feb/2020 11:39:59] "GET /css/chunk-vendors.728eb7d9.css HTTP/1.1" 200 -
    127.0.0.1 - - [19/Feb/2020 11:39:59] "GET /css/app.3b1f7acb.css HTTP/1.1" 200 -
    127.0.0.1 - - [19/Feb/2020 11:39:59] "GET /js/app.4c5df64c.js HTTP/1.1" 200 -
    127.0.0.1 - - [19/Feb/2020 11:39:59] "GET /js/chunk-vendors.592b69e7.js HTTP/1.1" 200 -
    127.0.0.1 - - [19/Feb/2020 11:39:59] "GET /fonts/element-icons.535877f5.woff HTTP/1.1" 200 -
    127.0.0.1 - - [19/Feb/2020 11:39:59] "GET /img/logo.7906e173.png HTTP/1.1" 200 -
    127.0.0.1 - - [19/Feb/2020 11:40:00] "GET /favicon.ico HTTP/1.1" 200 -
    {'page': 1, 'userpass': 'f6e3e83b839c10023138848f'}
    [2020-02-19 11:40:05,673] ERROR in app: Exception on /new [POST]
    Traceback (most recent call last):
    File "c:\users\lenovo\appdata\local\programs\python\python38\lib\site-packages\flask\app.py", line 2446, in wsgi_app
    response = self.full_dispatch_request()
    File "c:\users\lenovo\appdata\local\programs\python\python38\lib\site-packages\flask\app.py", line 1951, in full_dispatch_request
    rv = self.handle_user_exception(e)
    File "c:\users\lenovo\appdata\local\programs\python\python38\lib\site-packages\flask_cors\extension.py", line 161, in wrapped_function
    return cors_after_request(app.make_response(f(*args, **kwargs)))
    File "c:\users\lenovo\appdata\local\programs\python\python38\lib\site-packages\flask\app.py", line 1820, in handle_user_exception
    reraise(exc_type, exc_value, tb)
    File "c:\users\lenovo\appdata\local\programs\python\python38\lib\site-packages\flask_compat.py", line 39, in reraise
    raise value
    File "c:\users\lenovo\appdata\local\programs\python\python38\lib\site-packages\flask\app.py", line 1949, in full_dispatch_request
    rv = self.dispatch_request()
    File "c:\users\lenovo\appdata\local\programs\python\python38\lib\site-packages\flask\app.py", line 1935, in dispatch_request
    return self.view_functionsrule.endpoint
    File "c:\users\lenovo\appdata\local\programs\python\python38\lib\site-packages\JavPy\app\webserver\app.py", line 134, in new
    res = Functions.get_newly_released(False, params["page"])
    File "c:\users\lenovo\appdata\local\programs\python\python38\lib\site-packages\JavPy\utils\common.py", line 29, in wrapped
    res = func(*args, **kwargs)
    File "c:\users\lenovo\appdata\local\programs\python\python38\lib\site-packages\JavPy\functions_init
    .py", line 49, in get_newly_released
    return New.get_newly_released(up_to, which_page)
    File "c:\users\lenovo\appdata\local\programs\python\python38\lib\site-packages\JavPy\functions\new.py", line 25, in get_newly_released
    cls.newly_released[which_page] = cls.__get_newly_released_from_sources(which_page)
    File "c:\users\lenovo\appdata\local\programs\python\python38\lib\site-packages\JavPy\functions\new.py", line 69, in __get_newly_released_from_sources
    return cls.__find_usable_source(page)
    File "c:\users\lenovo\appdata\local\programs\python\python38\lib\site-packages\JavPy\functions\new.py", line 59, in __find_usable_source
    raise Exception("all sources are down")
    Exception: all sources are down
    127.0.0.1 - - [19/Feb/2020 11:40:05] "POST /new HTTP/1.1" 500 -

如何设置密码?

运行起来后,没有设置密码的情况下,打开页面时反复要求我输入密码。不论用空密码,还是输入其他什么,窗口都始终挡在前面,无法使用。

当我试图在config.json中,当我试图设置密码:"password": "1",然后访问网址,就会报错raise ValueError("No JSON object could be decoded"),报500错误。密码究竟应该如何设置?或者如何跳过密码?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.