Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

安装完成一直显示“Internal Server Error” #1

Open
wants to merge 8 commits into
base: dev
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 0 additions & 8 deletions 94imm.conf

This file was deleted.

97 changes: 97 additions & 0 deletions 94imm.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,97 @@
/*
Navicat Premium Data Transfer

Source Server : localhost
Source Server Type : MySQL
Source Server Version : 50629
Source Host : localhost:3306
Source Schema : 94imm

Target Server Type : MySQL
Target Server Version : 50629
File Encoding : 65001

Date: 15/04/2020 20:13:30
*/

SET NAMES utf8mb4;
SET FOREIGN_KEY_CHECKS = 0;

-- ----------------------------
-- Table structure for django_migrations
-- ----------------------------
DROP TABLE IF EXISTS `django_migrations`;
CREATE TABLE `django_migrations` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`app` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
`name` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
`applied` datetime(0) NOT NULL,
PRIMARY KEY (`id`) USING BTREE
) ENGINE = MyISAM AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic;

-- ----------------------------
-- Table structure for images_image
-- ----------------------------
DROP TABLE IF EXISTS `images_image`;
CREATE TABLE `images_image` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`pageid` int(11) NOT NULL,
`imageurl` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
`originurl` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE
) ENGINE = MyISAM AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic;

-- ----------------------------
-- Table structure for images_page
-- ----------------------------
DROP TABLE IF EXISTS `images_page`;
CREATE TABLE `images_page` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`typeid` int(11) NOT NULL,
`sendtime` date NOT NULL,
`title` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
`firstimg` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
`tagid` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
`crawler` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
`hot` int(10) NULL DEFAULT 0,
PRIMARY KEY (`id`) USING BTREE
) ENGINE = MyISAM AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic;

-- ----------------------------
-- Table structure for images_tag
-- ----------------------------
DROP TABLE IF EXISTS `images_tag`;
CREATE TABLE `images_tag` (
`id` int(4) NOT NULL AUTO_INCREMENT,
`tag` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
`uid` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
`date` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE
) ENGINE = MyISAM AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic;

-- ----------------------------
-- Table structure for images_type
-- ----------------------------
DROP TABLE IF EXISTS `images_type`;
CREATE TABLE `images_type` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`type` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE
) ENGINE = MyISAM AUTO_INCREMENT = 7 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic;

-- ----------------------------
-- Table structure for images_video
-- ----------------------------
DROP TABLE IF EXISTS `images_video`;
CREATE TABLE `images_video` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`url` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
`user_id` varchar(15) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
`date_time` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
`v_name` varchar(255) CHARACTER SET latin1 COLLATE latin1_swedish_ci NULL DEFAULT NULL,
`v_path` varchar(50) CHARACTER SET latin1 COLLATE latin1_swedish_ci NULL DEFAULT NULL,
`source` varchar(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = latin1 COLLATE = latin1_swedish_ci ROW_FORMAT = Compact;

SET FOREIGN_KEY_CHECKS = 1;
41 changes: 22 additions & 19 deletions config.py
Original file line number Diff line number Diff line change
@@ -1,26 +1,29 @@
'''
# 数据库信息,一键脚本自动添加
mysql_config = {
'ENGINE': 'django.db.backends.mysql',
'NAME':
'USER':
'PASSWORD':
'NAME': '94imm',
'USER': '94imm',
'PASSWORD': '94imm',
'HOST': '127.0.0.1',
'PORT': '3306',
}

allow_url=

# 数组形式,可以添加多个域名
allow_url=["www.94imm.com","94imm.com"]
# 缓存超时时间,服务器性能好可缩短此时
cache_time=300

# 使用的模板(暂时开放一个)
templates="zde"

site_name=

site_url =

key_word = "妹子,美女,mm131,妹子图,性感,免费,图片,美女图,胸器"

description = "94imm分享高品质美女图片,快速无弹窗。可以长期收藏的美女图片站"

email =
'''
# 网站名
site_name="94iMM"
# 一键脚本自动添加
site_url = "https://www.94imm.com"
# 网站关键词
key_word = "关键词1,关键词2,关键词3"
# 网站说明
description = "这是一个高质量的自动爬虫"
# 底部联系邮箱
email = "[email protected]"
# 网站调试模式
debug = False
# 友联
friendly_link = [{"name":"94imm","link":"https://www.94imm.com"},{"name":"获取源码","link":"https://github.com/Turnright-git/94imm.git"}]
3 changes: 3 additions & 0 deletions crawler/AutoPost.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
# -*- coding: utf-8 -*-
import sys

sys.path.append('../')
import pymysql,time,os,random,shutil,platform
from config import mysql_config

Expand Down
3 changes: 3 additions & 0 deletions crawler/Compress.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
# -*- coding: utf-8 -*-
import sys

sys.path.append('../')
from PIL import Image as Img
import os,threading,platform

Expand Down
2 changes: 2 additions & 0 deletions crawler/crawle_mzt.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# coding='UTF-8'
import sys

sys.path.append('../')
from bs4 import BeautifulSoup
import threading, pymysql, time, requests, os, urllib3
from config import mysql_config
Expand Down
10 changes: 8 additions & 2 deletions crawler/crawler_amn.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# coding='UTF-8'

import sys
sys.path.append('../')
from bs4 import BeautifulSoup
from requests.adapters import HTTPAdapter
import threading,pymysql,time,requests,os,urllib3,re,random
Expand Down Expand Up @@ -176,7 +177,12 @@ def run_2(self):

# start_page是采集开始也,end是采集结束页,type不用修改,自动分类,起始页为1
if __name__ == "__main__":
cl_list=[{"start_page": 1,"end_page":17, "type": "Cosplay", "type_id":6}
cl_list=[{"start_page": 1,"end_page":17, "type": "Cosplay", "type_id":6},
{"start_page": 1,"end_page":17, "type": "性感", "type_id":1},
{"start_page": 1, "end_page": 17, "type": "丝袜", "type_id": 2},
{"start_page": 1, "end_page": 17, "type": "美腿", "type_id": 2},
{"start_page": 1, "end_page": 17, "type": "美胸", "type_id": 1},
{"start_page": 1, "end_page": 17, "type": "制服诱惑", "type_id": 2}
]


Expand Down
3 changes: 3 additions & 0 deletions crawler/crawler_mm131.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# coding='UTF-8'

import sys

sys.path.append('../')
from bs4 import BeautifulSoup
import threading, pymysql, time, requests, os, urllib3, re,random
from config import mysql_config
Expand Down
3 changes: 3 additions & 0 deletions crawler/crawler_mmjpg.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
#coding='UTF-8'

import sys

sys.path.append('../')
from bs4 import BeautifulSoup
from requests.adapters import HTTPAdapter
import threading,pymysql,time,requests,os,urllib3,re,random
Expand Down
3 changes: 3 additions & 0 deletions crawler/crawler_mtl.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
#!/usr/bin/python3
import sys

sys.path.append('../')
from bs4 import BeautifulSoup
import threading,pymysql,time,requests,os,urllib3
from config import mysql_config
Expand Down
3 changes: 3 additions & 0 deletions crawler/crawler_nsg.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# coding='UTF-8'

import sys

sys.path.append('../')
from bs4 import BeautifulSoup
from requests.adapters import HTTPAdapter
import threading,pymysql,time,requests,os,urllib3,re,random
Expand Down
3 changes: 3 additions & 0 deletions crawler/crawler_xmt.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
# encoding: utf-8
import sys

sys.path.append('../')
from bs4 import BeautifulSoup
import threading, pymysql, time, requests, os, urllib3, re
from config import mysql_config
Expand Down
3 changes: 3 additions & 0 deletions crawler/crawler_ytu.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# coding='UTF-8'

import sys

sys.path.append('../')
from bs4 import BeautifulSoup
import threading, pymysql, time, requests, os, re
from config import mysql_config
Expand Down
3 changes: 3 additions & 0 deletions crawler/delete_img.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
import sys

sys.path.append('../')
import pymysql,os
from config import mysql_config

Expand Down
10 changes: 3 additions & 7 deletions crawler/down_img.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
import sys

sys.path.append('../')
import threading, pymysql,os,requests
from config import mysql_config

Expand All @@ -13,13 +16,6 @@
"user": mysql_config['USER'],
"password": mysql_config['PASSWORD']
}
# dbhost={
# "host":"192.168.1.67",
# "dbname":"silumz",
# "user":"silumz",
# "password":"fendou2009"
# }

db = pymysql.connect(dbhost.get("host"), dbhost.get("user"), dbhost.get("password"), dbhost.get("dbname"))
cursor = db.cursor()

Expand Down
41 changes: 0 additions & 41 deletions error/403.html

This file was deleted.

Loading