分享106个ASP新闻文章源码,总有一款适合您

文章提供了106个ASP新闻文章的源码下载链接,并附带了一个Python采集代码的下载链接。内容涉及多种新闻、文章管理和会员收费阅读系统,以及相关编程工具和方法。同时,文章中还包含了一些清理文件的辅助函数。
摘要由CSDN通过智能技术生成

 分享106个ASP新闻文章源码,总有一款适合您

 

106个ASP新闻文章源码下载链接:https://pan.baidu.com/s/143-M0-nwEaUNwGyfFV4Hjw?pwd=af8r 
提取码:af8r

Python采集代码下载链接:采集代码.zip - 蓝奏云

我的博客地址:亚丁号-知识付费平台 支付后可见 扫码付费可见

渝快政府机关单位网站系统

思翔会员制收费阅读(文章管理)系统

淮海有声文学网

志坚网络新闻文章管理系统 V1.0b Build 20071214

import os
import shutil
import time
from time import sleep
from framework.base.BaseFrame import BaseFrame
from sprider.business.DownLoad import DownLoad
from sprider.business.SeleniumTools import SeleniumTools
from sprider.business.SpriderTools import SpriderTools
from selenium import webdriver
from selenium.webdriver.common.by import By
from sprider.model.SpriderEntity import SpriderEntity
from sprider.access.SpriderAccess import SpriderAccess

sprider_name = "ASP新闻文章源码"

class CNSourceCoder:
    base_url = "http://www.downcode.com"
    base_path = "D:\\Freedom\\Sprider\\CNSource"
    sprider_count = 106
    sprider_start_count =199 #ASP新闻文章源码21是大文件 从20开始
    first_folder_name = "ASP"
    max_pager = 10  #  正在采集第31页的第9个资源,共64页资源
    word_image_count = 5  # word插入图片数量 同时也是明细采集图片和描述的数量

    page_end_number = 0
    word_content_list = []
    haved_sprider_count = 0  # 已经采集的数量
    sprider_detail_index = 0  # 明细方法采集的数量 累加
    tempFileList=[]

漳州网讯新闻管理系统 V2.1

机器人Web V2.0 Beta

笑话堂(含上万数据)

Shangducms国庆特辑版发布(Acc)

Shangducms国庆特辑版发布(Sql)

亿人新闻 V6.0

文摘园地文章系统 2005

终点小说连载系统 V2.35 Build 20070801 AccessSQL兼容安装版

酒吧小说连载系统W1.0

Shangdu 2.X系列最终版2.5版本发布ACCESS

Shangdu新闻后台管理系统ACCSQL 2.0.2

留溪新闻发布系统 V3.02

米儿文章管理系统 V1.0

喜木连载小说Asp版T系统 V1.50

Shangsite 1.0新闻文章管理系统

MisCMS

身体无忧网

情感美文文章系统(含数据)

阳光网域-帮助中心文章管理系统

喜木Asp小说T系统 V1.40

城市时尚频道管理系统

便民吧网站信息(简小)管理系统

城市新闻系统(美工非常漂亮)

追忆坊新闻发布系统

九天记事本V1.0

STJZW 简单新闻发布系统 V1.3

亿人文章管理 V1.0

乐学仿文章系统 V2.0 SP1

站长俱乐部新闻发布程序清爽版

AYNews 新闻网站管理系统 V4.0

『秦直道』维客百科美化版 [ V3.3 ]

极速端口文章管理系统 V1.0版

夜雨惊梦文学原创程序ASWINDS V1.0

安源新闻系统程序 V4.0

ST简单文章系统

珠玑巷网文章管理系统

龙觉资讯 V4.0

网络美女图文采集 Ver1.0 免费版

青年创业商机在线系统 V4.0

讯时百科全书 V1.1

讯时自动新闻更新系统 V1.0

蛙扑风暴新闻系统 V1.0.1 生成Html

UU文章(新闻)管理系统

简单的新闻管理系统--模板自动生成网站

惊云文章系统易木宁修改版

终点小说连载系统 V2.0 Access版

资源集中营

站长俱乐部新闻发布系统大型网站门户版V1.0

翼帆文章管理系统CMS V2.0 正式版

徐氏新闻文章管理系统 V1.70

阿G文章程序 V1.0 Build 0614

简单的新闻源码

Ce-Admin新闻系统个人主页版

圈圈美化版终点小说连载系统

郴州设计网·6D设计美化版

多多问吧完整版

飞翔中文小说连载系统V1.0

闪视新闻系统V1.0版本

雷驰新闻发布管理系统 V3.0

import os
import shutil

def void_folder(path):
    # 访问path路径下的文件或文件夹
    lst = os.listdir(path)
    # 打印每一层的文件或文件夹
    for name in lst:
        # 拼接名称,得到绝对路径,判断该文件是否符合是文件夹
        real_path = os.path.join(path, name)
        # 如果是文件夹,则打空格表示,并且递归访问下一层
        if os.path.isdir(real_path):
            # print(name)
            files = os.listdir(real_path)
            if len(files) == 0:
                print("void_folder():"+name)
                shutil.rmtree(real_path)
                endindex = len(real_path) - len(name)
                real_path = real_path[0:endindex]
                void_folder(real_path)
            else:
                void_folder(real_path)
        # 如果不是文件夹,直接打印,不再递归访问下一层
        else:
            #print(name)
            pass
def void_file(dirPath):
    dirs = os.listdir(dirPath)  # 查找该层文件夹下所有的文件及文件夹,返回列表
    for file in dirs:
        file_full_name = dirPath + '/' + file
        file_ext = os.path.splitext(file_full_name)[-1]
        if file_ext is None  or file_ext=="":
            continue

        if "rar" == str(file_ext.split(".")[1]):
            os.remove(file_full_name)
        if "zip" == str(file_ext.split(".")[1]):
            os.remove(file_full_name)
        if "gz" == str(file_ext.split(".")[1]):
            os.remove(file_full_name)
        if "tgz" == str(file_ext.split(".")[1]):
            os.remove(file_full_name)

# 查找指定文件夹下所有相同名称的文件
def search_file(dirPath, fileName):
    dirs = os.listdir(dirPath)  # 查找该层文件夹下所有的文件及文件夹,返回列表
    for currentFile in dirs:  # 遍历列表
        absPath = dirPath + '/' + currentFile

        if os.path.isdir(absPath):  # 如果是目录则递归,继续查找该目录下的文件
            search_file(absPath, fileName)
        elif currentFile == fileName:
            print(absPath)  # 文件存在,则打印该文件的绝对路径
            os.remove(absPath)

易华小说阅读

泰村在线小说系统V1.0

泰村在线新闻文章系统

EC-Article文章管理系统官方2006正式版

寻梦书库管理系统 V2.0

POP Article 文章系统 V2.0

露天小说连载系统精装版V2.0

SXNA V1.5.2.1229

天与海公告系统 V1.0

海量文学连载系统 V1.5版

钧尹网络文章系统SQL版生成HTML!

9ihere文章系统第二版

日照视窗整站系统(含全站数据库)

深度学习整站系统0.12版(大飞SQL完整版)

OHMY书吧文学系统V1.1

封装DLL的创力网站内容管理系统源码

印像新闻系统 V2.0.B Asp版

好心情多用户新闻系统 V1.1

嘉枫文章管理系统 V3.0 免费版

双语文章网V1.0

星旧新闻管理系统 V1.0

电子商务研究网CMS

简单实用新手学习ASP新闻系统

网络235资料文章管理系统全功能版

名门资源文章管理系统 V 3.0 静态生成版

386理财网

仿碧聊文学系统


    @staticmethod
    def judge_file_exist(is_check,check_times,
                         check_interval_sec,
                         check_path,check_ext,
                         temp_files=None):
        """
        检测函数
        :param is_check:是否检测True表示检测False 不检查
        :param check_times:检测次数
        :param check_interval:检测时间间隔(默认值)
        :param check_path:检测路径(默认值)
        :param chedk_ext:检测扩展名(默认值)
        :return:返回真假
        """
        if os.path.exists(check_path) is False:
            raise Exception("路径不存在...")
        if str.isdigit(str(check_times)) is False:
            raise Exception("检测次数不是数字...")
        if is_check is False:
            return True,"不进行检测" #直接执行下一步操作
        else:
            try:
                for number in range(1,int(check_times)):
                    print("正在进行第"+str(number)+"次检测...")
                    sleep(1) #延迟1s经常检测不到
                    files = os.listdir(check_path) # 读取目录下所有文件
                    tempFiles=copy.deepcopy(files)
                    if len(temp_files)==0:
                        pass
                    else:
                        #先各自去掉不合法的
                        for file in files:
                            filePath = check_path + os.sep +file
                            file_ext = os.path.splitext(filePath)[-1]
                            for e in check_ext.split("|"):
                                if e == str(file_ext.split(".")[1]).lower():
                                    tempFiles.remove(file)
                                    os.remove(filePath)
                                else:
                                    continue

                        for temp in temp_files:
                            filePath = check_path + os.sep + temp
                            if os.path.exists(filePath) is False:
                                trf= check_path + os.sep + temp.replace(".crdownload","")
                                if os.path.exists(trf):
                                    os.remove(trf)
                                temp_files.remove(temp)

                        for file in files:

                            for temp in temp_files:
                                #print(temp.temp_file_name)
                                if file==temp:
                                    # print(tempFiles)
                                    # print(file)
                                    tempFiles.remove(file)
                    file_number=len(tempFiles)
                    #print("过滤后的文件数量"+str(file_number))
                    if file_number ==0:
                        #不存在任何文件,休眠一会 继续执行下一次
                        sleep(int(check_interval_sec))  # 休眠一会
                        if number==1:
                            sleep(1)  # 延迟1s经常检测不到
                            continue
                        return False, "0个文件认定是False"
                    elif file_number==1:
                        file_name=files[0]
                        #crdownload
                        file_full_name=check_path+os.sep+file_name
                        file_ext=os.path.splitext(file_full_name)[-1]
                        if "crdownload"==str(file_ext.split(".")[1]):
                            sleep(int(check_interval_sec))  # 休眠一会
                            continue
                        if "tmp" == str(file_ext.split(".")[1]):
                            sleep(int(check_interval_sec))  # 休眠一会
                            continue
                        if "exe" == str(file_ext.split(".")[1]):
                            os.remove(file_full_name)
                            print("清理exe文件")
                            continue
                        for e in check_ext.split("|"):
                            if e == str(file_ext.split(".")[1]).lower():
                                return True,file_full_name
                            else:
                                sleep(int(check_interval_sec))  # 休眠一会
                                continue
                    else:
                        # 多个文件认定是False直接执行下一步操作
                        for file in files:
                            file_ext = str(os.path.splitext(file)[-1])
                            if file_ext == ".rar":
                                os.unlink(file)
                                print("多个文件之删除文件"+file)
                            if file_ext == ".zip":
                                os.unlink(file)
                                print("多个文件之删除文件" + file)
                            if file_ext == ".gz":
                                os.unlink(file)
                                print("多个文件之删除文件" + file)
                            if file_ext == ".tgz":
                                os.unlink(file)
                                print("多个文件之删除文件" + file)
                        return False,"多个文件认定是False"
                return False,"可能是不存在文件或者是tmp或crdownload文件"
            except Exception as e:
                BaseFrame().error("judge_file_exist Fail reason:" + str(e))
                return False
            pass

最后送大家一首诗:

山高路远坑深,
大军纵横驰奔,
谁敢横刀立马?
惟有点赞加关注大军。
 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

亚丁号

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值