GithubHelp home page GithubHelp logo

renren-album's Introduction

人人网相册获取

前提

所有环境均在 OS X 下操作,不保证 Windows 的兼容性(如果 windows 中无法弹出验证码,可以在 locals 目录下查看)。

因为使用了最新的 async/await 特性,所以 node 版本必须大于等于 7.6.0

使用方法

# 登录操作
./app.js -l -u 49****[email protected] -p *****

# 下载本人相册
./app.js -d

# 下载指定用户 id 相册
./app.js -d -i 4413**450

# 下载指定关键词相片,并指定数量
./app.js -k 葫芦娃 -n 40

相关内容保存在项目目录下的 locals 文件夹内。

如何知道用户id ? 打开用户首页,链接地址形如 http://www.renren.com/4413**450/profile,中间的数字就是用户 id

详情查看帮助 ./app.js -h

  Usage: app [options]

  Options:

    -h, --help               output usage information
    -V, --version            output the version number
    -l, --login              login renren
    -d, --download           download album
    -u, --username [string]  append username
    -p, --password [string]  append password
    -k, --keyword [string]   append keyword
    -n, --number [number]    the number of keyword images you want to download, default 10
    -i, --userid [string]    specify download someone's album by user id

错误信息

登录返回错误码参考

  • -1: "登录成功"
  • 0: "登录系统错误,请稍后尝试"
  • 1: "您的用户名和密码不匹配"
  • 2: "您的用户名和密码不匹配"
  • 4: "您的用户名和密码不匹配"
  • 8: "请输入帐号,密码"
  • 16: "您的帐号被停止使用"
  • 32: "帐号未激活,请激活帐号"
  • 64: "帐号已经注销"
  • 128: "您的用户名和密码不匹配"
  • 512: "请您输入验证码"
  • 4096: "登录系统错误,稍后尝试"
  • 8192: "您的用户名和密码不匹配"
  • 16384: "网络不给力,请稍候重试"

renren-album's People

Contributors

xueseason 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

Watchers

 avatar  avatar

renren-album's Issues

Ubuntu下某些情况依然会下载出错

试了两个账号,一个账号备份正常。第二个账号,每次备份到这个地方就报错:
[2017-04-13 20:28:50.509] [INFO] [default] - Status: 200
[2017-04-13 20:28:50.509] [INFO] [default] - Content-Type: image/jpeg
[2017-04-13 20:28:50.509] [INFO] [default] - Content-Length: 703854
[2017-04-13 20:29:10.565] [ERROR] [default] - Download failed: Error: ESOCKETTIMEDOUT
(node:2305) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): Error: ESOCKETTIMEDOUT
(node:2305) DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
[2017-04-13 20:29:10.574] [INFO] [default] - Download success

node app.js -d在Windows下面运行出错

(node:8868) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 2): Error: PATHERR: Expected absolute path.
(node:8868) DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

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.