Rat's

CentOS/Debian installs Renren Movie client, downloads resources and automatically uploads them to OneDrive
Note: Renren Movie&TV client is mainly a sharp tool for downloading videos. There are many resources such as American TV series, Japanese accounts, Korean TV series, etc., and it also has a search function, which can be searched directly
Scan the QR code on the right to read the full text
06
2018/12

CentOS/Debian installs Renren Movie client, downloads resources and automatically uploads them to OneDrive

explain: Renren Movie&TV client is mainly a powerful tool for downloading videos. There are many resources on it, such as American TV series, daily accounts, Korean TV series, and so on. It also has a search function, which can search external resources directly. In addition, the blogger tested that the download speed of many resources can basically reach the full bandwidth of the server. In addition, there is a big guy who has created a Renren movie and TV to automatically upload it to OneDrive Online disk script, but needs cooperation PyOne use. Here the blogger modifies the script and uses it together with another upload script of the blog, so it does not need to rely on PyOne Yes, it can be used alone, and the server resources will be deleted automatically after uploading, without taking up too much space.

screenshot

 Please enter a picture description
 Please enter a picture description

install

explain: The official client only CentOS The system, but the blogger found that the client can also Debian Ubuntu So I write the tutorial here.

The blogger has only tested CentOS 7 and Debian 8+ , theoretically Ubuntu 16+ OK, but for stable use, it is recommended to use it first CentOS 7

1. Installation dependency

 #CentOS 7 system yum install wget crontabs -y #Debian and Ubuntu systems apt install cron -y

2. Download Renren Movie

 #Download client wget  http://appdown.rrys.tv/rrshareweb_centos7.tar.gz #Decompress tar -zxvf rrshareweb_centos7.tar.gz #Delete useless files rm -rf rrshareweb*.tar.gz #Run Client cd rrshareweb ./rrshareweb

Then visit http://ip:3001 That is, the initial password is: one hundred and twenty-three thousand four hundred and fifty-six After entering the interface, first click the settings on the top right to modify the lower storage path, otherwise the download will not be fast.

If you can't open the interface, you need to open the firewall port. You can use it first Ctrl+C Disconnect the run and use the command:

 #CentOS 7 system firewall-cmd --zone=public --add-port=3001/tcp --permanent firewall-cmd --reload

Finally, restart the operation.

3. Start automatically
For our convenience, we can use Systemctl Daemons, and join the boot auto start.

 #The following command is copied to the SSH client to run cat > /etc/systemd/system/renren.service <<EOF [Unit] Description=RenRen server After=network.target Wants=network.target [Service] Type=simple PIDFile=/var/run/renren.pid ExecStart=/root/rrshareweb/rrshareweb RestartPreventExitStatus=23 Restart=always User=root [Install] WantedBy=multi-user.target EOF

Start Start:

 systemctl start renren

View status:

 systemctl status renren

If shown active(running) That is, it is successfully opened.

Set the power on auto start:

 systemctl enable renren

Configuration upload

1. Installing Python 3
Install using script:

 #CentOS system wget  https://www.moerats.com/usr/shell/Python3/CentOS_Python3.6.sh  && sh CentOS_Python3.6.sh #Debian system wget  https://www.moerats.com/usr/shell/Python3/Debian_Python3.6.sh  && sh Debian_Python3.6.sh #Since Ubuntu 16+comes with Python 3, you only need to install pip3 apt install python3-pip -y

install requests

 pip3 install requests

2. Install Onedrive upload script
Method reference: VPS upload file to OneDrive online disk script , install the script and authenticate OneDrive Account number is enough.

3. Add automatic upload script

 #Create a new folder to store the upload script mkdir /root/upod #Create a new detection script check.py, fill in your client running port and unlock password, and then copy them to the ssh client to run cat > /root/upod/check.py <<EOF # -*- coding: utf-8 -* import requests import os ip="127.0.0.1" Port="Your port" Passwd="Your unlock password" url="http://"+str(ip)+":"+str(port)+"/api/unlock?passwd="+str(passwd) workingtaskurl="http://"+str(ip)+":"+str(port)+"/api/workingtask" finishedtaskurl="http://"+str(ip)+":"+str(port)+"/api/finishedtask" deletetaskurl="http://"+str(ip)+":"+str(port)+"/api/deletetask" s=requests.session() s.get(url=url) c=s.get(workingtaskurl).text d=s.get(finishedtaskurl) dict=(eval(d.text)) for i in dict['tasks']: ids=i['file_id'] filename=i['file_name'] os.system("bash /root/upod/work.sh "+"\""+filename+"\"") data={ 'ids':'["'+ids+'"]', 'delfile':1 } s.post(deletetaskurl,data=data) print("task finish") EOF

To create a new automatic upload script, use the command:

 nano /root/upod/work.sh

First transfer the download directory in the script /root/down Replace it with your own. Remember that there are two positions to replace, and then copy them.

 #!/ bin/bash time=$(date "+%Y%m%d%H%M%S") filename=${time}${1} #time=$(date "+%Y%m%d-%H%M%S") filedir=${filename}${time} echo "$filedir" echo "$filename" mkdir -p /temp/"$filedir"/ mv /root/down/"$1" /temp/"$filedir"/"$filename" eval onedrive-d \'/temp/"$filedir"\' rm -rf /temp/"$filedir" rm -rf /root/down/mask/

Reuse Ctrl+X Y Save to exit. Notice here check.py In the script work.sh The script path should be absolute, otherwise it is easy to cause problems.

4. Test upload script
First, we can download a movie resource, and then execute the command:

 python3 /root/upod/check.py

If output Successfully uploaded The words are successful, otherwise please check your previous operation.
 Please enter a picture description

5. Execute upload script regularly
New Scheduled Task:

 #Set to execute every minute echo "*/1 * * * * python3 /root/upod/check.py" > bt.cron crontab bt.cron rm -rf bt.cron

Last use crontab -l Command to check whether the addition is successful. If successful, you have basically completed the installation steps.

Tips

This client does not support online viewing. If there is a need for online viewing, you can cooperate with several OneDrive The lister can be viewed online, without consuming server traffic. Here are some examples:

 #PyOne Manual installation: https://www.moerats.com/archives/734/ Script installation: https://www.moerats.com/archives/806/ Docker installation: https://www.moerats.com/archives/799/ #OneIndex Manual installation: https://www.moerats.com/archives/592/ Script installation: https://www.moerats.com/archives/692/ #OLAINDEX Manual installation: https://www.moerats.com/archives/765/

Reference link

 Film and television installation: https://www.abbeyok.com/archives/213 Upload script: https://blog.mark56.cn/archives/101/
Vultr New user registration send one hundred USD/ sixteen Each computer room is charged by hour, and Alipay is supported【 Click to view 】。
Last modification: 01:32 PM, July 4, 2019

Comment

174 comments

  1. jank

    Boss, I installed the Docker in Centos https://hub.docker.com/r/oldiy/rrshare64 This image can now open the web page, but there are no resources to download

    1. support
      @jank

      The API interface inside is hung. The current API interface is http://file.apicvn.com/file/list
      Search for zmzfile in rrshareweb/web/build/static/js/main.d30188cd.js
      Replace two places:
      http://www.zmzfile.com/file/list Replace with http://file.apicvn.com/file/list
      http://www.zmzfile.com/file/search?keyword= Replace with http://file.apicvn.com/file/search?keyword=

    2. Rat's
      @jank

      Did you hang up

  2. aaaaaaaaa

    The latest update is not displayed, and the search is useless. Is this my problem

    1. a
      @aaaaaaaaa

      You're not alone

  3. xiaow

    Boss, can you send it to Google?

    1. Rat's
      @xiaow

      No problem, but this article is only applicable to onedrive

  4. gohkh

    [ root@instance-6 ~]# pip3 install requests
    -bash: pip3: command not found
    ???

  5. kyle

    If OneDriveUploader is installed, you can try this script. sh, I used it myself and it is successful...
    cd ~
    OneDriveUploader -c /root/auth.json -s "down" -r "Download"
    rm -rf /root/down/*

  6. Kyle

    Last login: Thu Nov 28 14:44:10 2019 from 124.160.213.186
    [ root@panx ~]# python3 /root/upod/check.py
    20191128152732 Qingzhiquan. 2019. Chinese Japanese Bilingual BD-720. Cookie subtitle group V2.mp4
    Detective Conan: Ganqing's Fist (2019) Chinese and Japanese BD-720. Cookie subtitle group V2.mp4
    Invalid item.
    20191128152733 Lion King (2019) BDrip.1080P-Freelancer Alliance.mp4
    The. Lion. King of the Lion (2019) BDrip.1080P-Freelancer Alliance.mp4
    Invalid item.
    task finish
    [ root@panx ~]#
    What should I do

  7. Salute to programmers

    Hello, blogger. After using PYONE for a week, I found that there was still a problem uploading onedrive. It always stopped at a certain progress.
    So you want to install it manually. Can bloggers write a tutorial. In addition, how to call the ARIA panel of the blogger,

    1. Rat's
      @Salute to programmers

      Manual Tutorial: https://www.moerats.com/archives/734/ , and make good use of blog search

  8. BUG feedback

    There are many good things in Big Brother's blog. I often read them when I'm free

    1. Rat's
      @BUG feedback

      It's just blind water. Maybe it can help people.

  9. Wood

    What VPS should I use

    1. Rat's
      @Wood

      The hard disk is a little big, and it is said that it will occupy the CPU, so TOS should not be very strict with the CPU limit.

  10. Exotic dream

    Boss, after modifying the storage directory, the download still has no speed. The directory is modified to/web/mv. In addition, the operation results are as follows. Do you need port 6714 for download? I also opened the port, but still no speed.
    mask&dl=1&t=1562233859&k=32533eaf147a6b1f9ae184e7cbb7ab57 err: Get http://127.0.0.1:6714/start?url=yyets%3A%2F%2FH%3D0a5ca99739b22abc5fea3c03b47fc18bb222d7f4%7CS%3D552894824%7CN%3D%E6%98%9F%E9%99%85%E8%BF%B7%E8%88%AA%EF%BC%9A%E5%8F%91%E7%8E%B0%E5%8F%B7.Star.Trek.Discovery.S02E10.%E4%B8%AD%E8%8B%B1%E5%AD%97%E5%B9%95.WEB.720P -%E4%BA%BA%E4%BA%BA%E5%BD%B1%E8%A7%86.mp4%7C&store=%2Fopt%2Fwork%2Fstore%2F%E6%98%9F%E9%99%85%E8%BF%B7%E8%88%AA%EF%BC%9A%E5%8F%91%E7%8E%B0%E5%8F%B7.Star. Trek. Discovery. S02E10.%E4%B8%AD%E8%8B%B1%E5%AD%97%E5%B9%95.WEB.720P-%E4%BA%BA%E4%BA%BA%E5%BD%B1%E8%A7%86.mp4&mask=%2Fopt%2Fwork%2Fstore%2Fmask%2F0a5ca99739b22abc5fea3c03b47fc18bb222d7f4.mask&dl=1&t=1562233859&k=32533eaf147a6b1f9ae184e7cbb7ab57: dial tcp 127.0.0.1:6714: connect: connection refused"

    1. Rat's
      @Exotic dream

      /Does the web/mv directory exist? I remember that the modified directory does not exist and will have no speed.

      1. Exotic dream
        @Rat's

        Mm-hmm. Change it to/root/Download and turn off the firewall. It also installs a pyone, which uploads files in the background of pyone, but it is slow to upload.

        1. Rat's
          @Exotic dream

          You can try the command line upload of oneindex, which is very fast