Skip to content

Latest commit

 

History

History
46 lines (33 loc) · 1.73 KB

README.md

File metadata and controls

46 lines (33 loc) · 1.73 KB

renren-album-downloader

A simple yet much needed web crawler to download all albums on your renren.com account. I've never used JavaScript before and the codes are all based on the project XueSeason/renren-album, I only modified a little for some bug fixes and improvements.

What's Updated

  • The original downloader can only capture a maximum of 40 photos per album no matter how many more you have, this is due to dynamic loading of renren's webpage. The issue is fixed and now all photos will be downloaded.
  • A quality of life update: added upload time of a photo to the file name, now the name has the format "yyyymmdd_hhmm_photoid".

Step-by-Step User Guide

My operating system is Ubuntu 18.04 LTS

  • Git clone this repository and cd to the local folder

  • You need node.js and a JavaScript package manager, they can be installed with

    $ apt update
    $ apt install nodejs
    $ apt install npm
  • Several JavaScript packages are needed, run the following commands

    $ npm install commander
    $ npm install axer
    $ npm install cheerio
    $ npm install node-rsa
    $ npm install readline-sync
  • Obtain your renren account login information

    $ ./app.js -l -u yourusername -p yourpassword
  • Type in the following command and it's time to get a drink and chill

    $ ./app.js -d -i youruserid

Misc

  • Photos are downloaded to the folder "locals/youruserid/" and organized by their corresponding albums.
  • Today is Jun. 1, 2018 and the tool works like magic, but it will fail once renren changes how data is sent or encrypts their urls, so don't hesitate to try it as soon as possible.