#Tutorial# Pagoda panel builds girl picture station with built-in crawler collection 94imm program

888u

Last update at :2024-02-09,Edit by888u

Introduction

94imm is an image program written by a big guy himself. The big guy also wrote a collection crawler, which can run the collection fully automatically. However, the big guy only provides a program that can be installed directly on centos. I believe many friends are using Cheap Pagoda. Panel, today I will share a 94imm installation tutorial for the Pagoda panel.

Pagoda panel installation

yum install -y wget && wget -O install.sh http://download.bt.cn/install/install_6.0.sh && bash install.sh

After the installation is completed, switch to the Pagoda software management interface to install the following software

Nginx version 1.15

Mysql version 5.7

PHP version 7.3

After the above software is installed, install version phpMyAdmin 4.8, otherwise an error will be reported prompting you to install the above software first.

Install Python3.6.5

Install EPEL and IUS software sources

yum install epel-release -y yum install https://centos7.iuscommunity.org/ius-release.rpm -y

Install Python3.6

yum install python36u -y

Create python3 connector

ln -s /usr/bin/python3.6 /usr/bin/python3

Install pip3

yum install python36u-pip -y

Create pip3 linker

ln -s /usr/bin/pip3.6 /usr/bin/pip3

Install python-dev

yum install python36u-devel

94imm program installation

To keep the configuration consistent with the source code, please clone the 94imm source code to the /root directory.

If you want to place it in another directory, please open uwsgi.ini and modify the configuration yourself.

git clone https://git.coding.net/zxy_coding/94imm.git

Enter the program directory

cd 94imm

Installation program dependencies

pip3 install -r requirements.txt

94imm program configuration

1. Modify the database configuration in the settings.py file under silumz

DATABASES = { 'default': { ‘ENGINE’: ‘django.db.backends.mysql’, ‘NAME’: ‘database name’, ‘USER’: ‘database username’, ‘PASSWORD’: ‘database password’, ‘HOST’: ‘127.0.0.1’, ‘PORT’: ‘3306’, } }

2. Place the pagination.html file in the template directory under /site-packages/dj_pagination/templates/pagination/ in the python installation directory

(centos7 /usr/lib/python3.6/site-packages/dj_pagination/templates/pagination)

3. Create a website and corresponding database through the Pagoda panel

4. Import the sql file in the program directory through the pagoda panel

The sql file is under the 94imm directory. You can use Pagoda to copy it to /www/backup/database and then import it directly.

5. Modify nginx website configuration through pagoda

Add the following content and delete the selected content in the picture. After saving, restart nginx in the software management interface.

location/{ proxy_pass http://127.0.0.1:8000; index index.html index.htm; }

Run 94imm

Enter the program directory and execute

uwsgi --ini uwsgi.ini

You can now access the website through the domain name, but this time the website has no data and needs to be crawled by a crawler.

Crawler settings

The crawler is located in the crawler directory. Each file is independent and can be executed independently.

The crawler mainly modifies the corresponding database name, database user name and password.

It is recommended to modify the crawler parameters to collect the entire site when running for the first time, modify the parameters to collect the first page after running, and then add scheduled tasks in Linux. Realize automatic collection,

Run command:

python3 crawl_mzt.py

Tips: UnicodeEncodeError: 'ascii' codec can't encode characters in position 0-21: ordinal not in range(128 Add the following command in front

PYTHONIOENCODING=utf-8 python code.py

Original text: https://sunsea.im/131/bt-94imm-build-beautiful-girl-picture-station/

Recommended site search: IP proxy address free personal website server, virtual host Hong Kong host, IP reverse check Unicom virtual host, domain name auction, anti-attack IP, Ministry of Industry and Information Technology domain name registration, legendary server rental, mobile server rental,

#Tutorial# Pagoda panel builds girl picture station with built-in crawler collection 94imm program

All copyrights belong to 888u unless special state
取消
微信二维码
微信二维码
支付宝二维码