GithubHelp home page GithubHelp logo

Comments (9)

the0demiurge avatar the0demiurge commented on May 18, 2024

可以,只要python managed.py runserver即可。需要注意的是,

  1. 需要装requirements.txt里面的依赖库
  2. views.py#L54 这里我设置的访问次数除以150余5的时候才会更新,所以你更新网站后前五次访问不会有数据,而且你访问自己网站的访问量应该不会很大,应该设置小一点的次数
  3. 因为数据源中有很多国外网站,如果不走代理的话你在自己电脑上很可能找不到太多帐号。

from shadowsocksshare.

zasl avatar zasl commented on May 18, 2024

如果可以我就试着弄一下,我是路由器里面装了ssr,有透明代理使用gfwlist,访问外网应该不成问题。
在您这里下载的软件应该是什么,我看里面很多文件,我使用python的阶段在于pip3 install xxx?
按照你的教程,如果我访问我的路由器的路径应该是什么呢?
本人比较小白,麻烦了

from shadowsocksshare.

the0demiurge avatar the0demiurge commented on May 18, 2024

应当使用pip3 install -r requirements.txt

python的程序默认是不走代理的,如果想让它走代理,可以尝试让系统走全局代理

如果我访问我的路由器的路径应该是什么呢?

这句话我没有理解到你的意思。。

from shadowsocksshare.

zasl avatar zasl commented on May 18, 2024

昨天尝试在lede里面安装python,因为编译的路由器固件忘记打开全部空间,昨天夜里又编译了一下,今天准备刷机安装一下。

如果不走代理是否可以在gfwlist里面添加域名来解决?因为我自己也在用BT下载电影,这样会直接导致我的账号被封。

如果我访问我的路由器的路径应该是什么呢?

这句话我没有理解到你的意思。。
看您的实例是个网页,我想会是和类似yaaw这个一样吧,就是访问我的路由器就是出来和你一样的页面。

from shadowsocksshare.

zasl avatar zasl commented on May 18, 2024

麻烦请看一下,已经安装了python3,python-pip,setuptool
执行 pip3 install -r requirements.txt
返回信息如下,请问我该如何解决?
root@DOG:/tmp# pip3 install -r requirements.txt
Collecting Flask (from -r requirements.txt (line 1))
Using cached Flask-0.12.2-py2.py3-none-any.whl
Collecting flask-mongoengine (from -r requirements.txt (line 2))
Using cached flask-mongoengine-0.9.3.tar.gz
Complete output from command python setup.py egg_info:
Download error on https://pypi.python.org/simple/rednose/: [SSL: CERTIFICATE_VERIFY_FAILED] unknown error (_ssl.c:749) -- Some packages may not be found!
Couldn't find index page for 'rednose' (maybe misspelled?)
Download error on https://pypi.python.org/simple/: [SSL: CERTIFICATE_VERIFY_FAILED] unknown error (_ssl.c:749) -- Some packages may not be found!
No local packages or working download links found for rednose
Traceback (most recent call last):
File "", line 1, in
File "/tmp/pip-build-yaguefgl/flask-mongoengine/setup.py", line 74, in
'Topic :: Software Development :: Libraries :: Python Modules'
File "/usr/lib/python3.6/distutils/core.py", line 108, in setup
_setup_distribution = dist = klass(attrs)
File "/usr/lib/python3.6/site-packages/setuptools/dist.py", line 314, in init
self.fetch_build_eggs(attrs['setup_requires'])
File "/usr/lib/python3.6/site-packages/setuptools/dist.py", line 360, in fetch_build_eggs
replace_conflicting=True,
File "/usr/lib/python3.6/site-packages/pkg_resources/init.py", line 851, in resolve
dist = best[req.key] = env.best_match(req, ws, installer)
File "/usr/lib/python3.6/site-packages/pkg_resources/init.py", line 1123, in best_match
return self.obtain(req, installer)
File "/usr/lib/python3.6/site-packages/pkg_resources/init.py", line 1135, in obtain
return installer(requirement)
File "/usr/lib/python3.6/site-packages/setuptools/dist.py", line 426, in fetch_build_egg
return cmd.easy_install(req)
File "/usr/lib/python3.6/site-packages/setuptools/command/easy_install.py", line 658, in easy_install
raise DistutilsError(msg)
distutils.errors.DistutilsError: Could not find suitable distribution for Requirement.parse('rednose')

----------------------------------------

Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-yaguefgl/flask-mongoengine/

from shadowsocksshare.

the0demiurge avatar the0demiurge commented on May 18, 2024

没有找到依赖,建议你试试Python3.5

from shadowsocksshare.

zasl avatar zasl commented on May 18, 2024

我使用的是官方的源,看到官方源只有3.6,还不知道3.5如何安装。我在win下面的3.6也是报错。我去找下安装方法。

实在是找不到安装3.5的方法。。。

from shadowsocksshare.

scyslz avatar scyslz commented on May 18, 2024

为什么本地跑起来以,十分钟后,一个节点都没有

from shadowsocksshare.

the0demiurge avatar the0demiurge commented on May 18, 2024

因为被爬的网站大多数都被墙了

from shadowsocksshare.

Related Issues (20)

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.