Giter Club home page Giter Club logo

movies_python's Introduction

movies_python

资源采集网爬虫

python2.7

爬取网站上不定时更新的视频资源

  • MainTask : 电影爬虫
  • TV_Task : 电视剧爬虫
  • Media_Task : 综艺爬虫
  • Anime_Task : 动漫爬虫
  • searchTask : 搜索爬虫

视频站

启动脚本命令:

git clone https://github.com/hayeslin1/movies_python.git

python MainTask.py
python TV_Task.py
python Media_Task.py
python Anime_Task.py
python searchTask.py

## 可自行设置crontab定时任务

提供联合脚本:

#!/bin/bash

yum install -y wget 
yum install -y git


mkdir -p /home/videos
cd /home/videos

git clone https://github.com/hayeslin1/hayes_tube.git 
git clone https://github.com/hayeslin1/movies_python.git 

wget http://mirrors.tuna.tsinghua.edu.cn/apache/maven/maven-3/3.6.2/binaries/apache-maven-3.6.2-bin.tar.gz

tar -zxvf apache-maven-3.6.2-bin.tar.gz

echo 'export MVN_HOME=/home/videos/apache-maven-3.6.2' >> /etc/profile
echo 'export PATH=$PATH:$MVN_HOME/bin' >> /etc/profile

source /etc/profile

cp /home/videos/hayes_tube/aliyun/settings.xml /home/videos/apache-maven-3.6.2/conf/settings.xml

cd /home/videos/hayes_tube/

source /etc/profile
mvn clean install 

nohup java -jar target/hayes_tube-0.0.1-SNAPSHOT.jar --server.port=8080  >> /home/videos/hayes_tube/catalina.out 2>&1 &


yum install -y epel-release
yum install -y python-pip

pip install --upgrade pip
pip install requests 
pip install bs4
pip install pymysql
pip install lxml
pip install logging 

cd /home/videos/movies_python

touch crew.sh
chmod +x crew.sh

echo '#!/bin/bash' >> crew.sh
echo 'source /etc/profile' >> crew.sh
echo '' >> crew.sh
echo 'python MainTask.py' >> crew.sh
echo 'python TV_Task.py' >> crew.sh
echo 'python Media_Task.py' >> crew.sh
echo 'python Anime_Task.py' >> crew.sh

bash crew.sh 

crontab -l > conf && echo "00 00 * * *  /bin/bash /home/videos/movies_python/crew.sh" >> conf 
crontab conf && rm -f conf

感谢

OK资源网

movies_python's People

Contributors

hayeslin1 avatar lzx009 avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

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.