Giter Club home page Giter Club logo

doufen's Introduction

此项目已废弃。新版豆瓣备份工具,请移步 https://github.com/doufen-org/tofu

豆坟

用来备份豆瓣帐号的软件。目前支持备份关注、黑名单、书影音、广播。

开发环境要求:

  • VSCode
  • Python 3.6
  • virtualenv 15.2
  • Nodejs 8.9
  • npm 5.8
  • git 2.16

开始

> npm config set script-shell "C:\\Program Files\\Git\\usr\\bin\\bash.exe"
> npm i

如果安装 peewee 组件提示『找不到sqlite3.h』错误,尝试使用如下方法安装:

> set NO_SQLITE=1
> pip install peewee

命令

调式 app:

> npm run app

调试 service:

> npm run service

打包 app:

> npm run build:app

打包 service:

> npm run build:service

Linux 和 MacOS

在 Unix-like 的系统下,Virtualenv 的激活命令为:

> .venv/bin/activate

直接运行 npm i 会提示“./.venv/Scripts/activate: No such file or directory”错误。请修改 package.json 中相应的命令。

doufen's People

Contributors

tabris17 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  avatar  avatar

doufen's Issues

无法终止任务

尝试给一个被伪瓣销号的朋友备份一下广播,结果。。卡住了。
点了停止,但备份另一个账号的时候,又会跳回到这个卡住的备份界面,无法前进了。

设置及评论抓取问题

你好,感谢大作!以下是使用过程中遇到的几个问题:

  • 首先,有一个地方挺奇怪,账户本身只有我一个,但如果不点击确认,就无法添加右边的任务。
  • 广播评论不知道能否和广播任务合并。一开始想说评论没有抓取,原来是最后一个任务,大佬我错了~

烦请有空时回复,谢谢!

退出系统失败

备份书的时候出现系统卡顿于是退出系统、重启进程均失败,卡在原界面不可动弹

MacOS 上app build 并 安装后 打开时 报错

点击程序图标后,报错如下:

Uncaught Exception:
Error: spawn service ENOENT
    at _errnoException (util.js:1024:11)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:190:19)
    at onErrorNT (internal/child_process.js:372:16)
    at _combinedTickCallback (internal/process/next_tick.js:138:11)
    at process._tickCallback (internal/process/next_tick.js:180:9)
    at Function.Module.runMain (module.js:685:11)
    at startup (bootstrap_node.js:196:16)
    at bootstrap_node.js:622:3

另外,linux的那个issue,macos 上也会出现。

MacOS server build 报错

执行 npm run build:service 后

> [email protected] build:service /Users/xxx/git/doufen
> source .venv/bin/activate && source ./scripts/build.sh

268 INFO: PyInstaller: 3.3.1
268 INFO: Python: 3.6.5
279 INFO: Platform: Darwin-16.7.0-x86_64-i386-64bit
280 INFO: wrote /Users/xxx/git/doufen/service.spec
283 INFO: UPX is not available.
285 INFO: Extending PYTHONPATH with paths
['/Users/xxx/git/doufen/src/service', '/Users/xxx/git/doufen']
286 INFO: checking Analysis
297 INFO: Appending 'binaries' from .spec
297 INFO: Appending 'datas' from .spec
304 INFO: checking PYZ
310 INFO: checking PKG
310 INFO: Building PKG because out00-PKG.toc is non existent
310 INFO: Building PKG (CArchive) out00-PKG.pkg
Traceback (most recent call last):
  File "/Users/xxx/git/doufen/.venv/bin/pyinstaller", line 11, in <module>
    sys.exit(run())
  File "/Users/xxx/git/doufen/.venv/lib/python3.6/site-packages/PyInstaller/__main__.py", line 94, in run
    run_build(pyi_config, spec_file, **vars(args))
  File "/Users/xxx/git/doufen/.venv/lib/python3.6/site-packages/PyInstaller/__main__.py", line 46, in run_build
    PyInstaller.building.build_main.main(pyi_config, spec_file, **kwargs)
  File "/Users/xxx/git/doufen/.venv/lib/python3.6/site-packages/PyInstaller/building/build_main.py", line 791, in main
    build(specfile, kw.get('distpath'), kw.get('workpath'), kw.get('clean_build'))
  File "/Users/xxx/git/doufen/.venv/lib/python3.6/site-packages/PyInstaller/building/build_main.py", line 737, in build
    exec(text, spec_namespace)
  File "<string>", line 29, in <module>
  File "/Users/xxx/git/doufen/.venv/lib/python3.6/site-packages/PyInstaller/building/api.py", line 411, in __init__
    strip_binaries=self.strip, upx_binaries=self.upx,
  File "/Users/xxx/git/doufen/.venv/lib/python3.6/site-packages/PyInstaller/building/api.py", line 196, in __init__
    self.__postinit__()
  File "/Users/xxx/git/doufen/.venv/lib/python3.6/site-packages/PyInstaller/building/datastruct.py", line 161, in __postinit__
    self.assemble()
  File "/Users/xxx/git/doufen/.venv/lib/python3.6/site-packages/PyInstaller/building/api.py", line 259, in assemble
    dist_nm=inm)
  File "/Users/xxx/git/doufen/.venv/lib/python3.6/site-packages/PyInstaller/building/utils.py", line 207, in checkCache
    dylib.mac_set_relative_dylib_deps(cachedfile, dist_nm)
  File "/Users/xxx/git/doufen/.venv/lib/python3.6/site-packages/PyInstaller/depend/dylib.py", line 308, in mac_set_relative_dylib_deps
    dll = MachO(libname)
  File "/Users/xxx/git/doufen/.venv/lib/python3.6/site-packages/macholib/MachO.py", line 95, in __init__
    self.load(fp)
  File "/Users/xxx/git/doufen/.venv/lib/python3.6/site-packages/macholib/MachO.py", line 110, in load
    self.load_header(fh, 0, size)
  File "/Users/xxx/git/doufen/.venv/lib/python3.6/site-packages/macholib/MachO.py", line 147, in load_header
    header, fh))
ValueError: Unknown Mach-O header: 0x89504e47 in <_io.BufferedReader name='/Users/xxx/Library/Application Support/pyinstaller/bincache00_py36_64bit/static/logo.png'>
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] build:service: `source .venv/bin/activate && source ./scripts/build.sh`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the [email protected] build:service script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

登陆成功,进入我的豆瓣又需要重新登录

之前已经备份了一部分。今天重新进来,想更新最忌你的广播之类,点击我的豆瓣,要求重新登录。重新登录后,点击我的豆瓣,仍然要求重新登录。

之前也有过类似情况,不同点在于那时候点击我的豆瓣会闪退,相同点绿色按钮对应的账户名处都只显示了我的域名,而能够备份时那里同时显示我的域名+当前用户名

请求添加导出功能

导出为文本格式(csv)之类的文件更好本地保存和使用。请问有计划添加导出功能吗?

Ubuntu上启动失败

Ubuntu 14.04 运行npm run appnpm run service,按任意键继续之后弹出如下错误

A JavaScript error occurred in the main process
Uncaught Exception:
TypeError: Error processing argument at index 0, conversion failure from /home/djn_dl/桌面/doufen/src/app/app.ico
    at createTray (/home/djn_dl/桌面/doufen/src/app/window.js:133:16)
    at BrowserWindow.splash.once (/home/djn_dl/桌面/doufen/src/app/main.js:179:21)
    at Object.onceWrapper (events.js:316:30)
    at emitOne (events.js:115:13)
    at BrowserWindow.emit (events.js:210:7)
    at EventEmitter.<anonymous> (/home/djn_dl/桌面/doufen/node_modules/electron/dist/resources/electron.asar/browser/rpc-server.js:478:12)
    at emitOne (events.js:115:13)
    at EventEmitter.emit (events.js:210:7)
    at WebContents.<anonymous> (/home/djn_dl/桌面/doufen/node_modules/electron/dist/resources/electron.asar/browser/api/web-contents.js:275:13)
    at emitTwo (events.js:125:13)

MacOS下 npm i 安装报错,提示“./.venv/Scripts/activate: No such file or directory”

操作系统:macOS 10.13.4
node版本:8.9.1
npm版本:6.1.0
python版本:2.7.17

╰─$ npm i                                                                     

> [email protected] postinstall /Users/Billion/dev/codes/doufen
> virtualenv .venv && source ./.venv/Scripts/activate && pip install -r ./requirements.txt && mkdir var && mkdir var/data && mkdir var/log

New python executable in /Users/Billion/dev/codes/doufen/.venv/bin/python2.7
Not overwriting existing python script /Users/Billion/dev/codes/doufen/.venv/bin/python (you must use /Users/Billion/dev/codes/doufen/.venv/bin/python2.7)
Installing setuptools, pip, wheel...done.
sh: ./.venv/Scripts/activate: No such file or directory

能否模仿豆芽来获取数据呢?

豆芽 APP 通过本地安装的豆瓣APP来获得API KEY,以此来连接网站数据。在这个项目中能否也采取同样的思路进行模拟呢?

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.