分享106个JS选项卡,总有一款适合您
106个JS选项卡下载链接:https://pan.baidu.com/s/1kdRJvTgcuZe_TpzrcnmQDQ?pwd=0k2d
提取码:0k2d
Python采集代码下载链接:https://wwgn.lanzoul.com/iKGwb0kye3wj
css手风琴效果选项卡
jQuery产品中心tab选项卡实例
css水果tab选项卡切换特效
CSS3 3D翻转Tab选项卡切换插件
jQuery响应式引导选项卡代码
jQuery Tab标签选项卡切换菜单
js精美彩色tab选项卡切换特效
jQuery收件箱邮件内容查看代码
web前端ui框架zUI插件
点击动态选项卡图标栏SVG特效
jQuery下拉菜单Tab切换代码
jQuery标签页Tab选项卡切换
纯CSS3项目价格表切换代码
jQuery选项卡步骤向导代码
jQuery新闻分类TAB选项卡切换代码
jQuery滑动切换全屏选项卡代码
jQuery选项卡滑动切换图片代码
tab选项卡切换不同图片代码
jQuery自定义标签选项卡插件
基于element-ui标签选项卡
jQuery上下滑动选项卡切换代码
import os
import shutil
import time
from time import sleep
from docx import Document
from docx.shared import Inches
from framework.base.BaseFrame import BaseFrame
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
title_name = "选项卡"
class ChinaZJsSelenium:
base_url = "https://sc.chinaz.com/" # 采集的网址
save_path = "D:\\Freedom\\Sprider\\ChinaZ\\"
sprider_count = 106# 采集数量
sprider_start_count=0
word_content_list = []
folder_name = ""
page_end_number=0
max_pager=20 #每页的数量
haved_sprider_count =0 # 已经采集的数量
page_count = 1 # 每个栏目开始业务content="text/html; charset=gb2312"
filter_down_file=[]
swiper移动端滑动切换选项卡代码
jQuery动态添加删除编辑标签代码
jQuery机房信息课程表选项卡代码
jQuery标签TAB控制图片切换代码
jQuery点击打开多个标签页代码
jQuery点击切换Tab标签选项卡代码
Bootstrap滑动选项卡切换代码
Bootstrap自定义选项卡代码
Bootstrap Tabs选项卡代码
可多次使用的TAB选项卡代码
jQuery鼠标经过选项卡内容切换代码
基于Font Awesome图标选项卡特效
jQuery仿淘宝橱窗位广告代码
jQuery手机触屏Tab选项卡代码
Bootstrap选项卡美化Tabs特效
jQuery选项卡自定义切换方式代码
jQuery大气图标选项卡切换代码
Bootstrap蓝色清爽线条选项卡代码
jQuery多个选项卡tab切换代码
jQuery网站垂直选项卡切换代码
jQuery SVG垂直图标选项卡特效
HTML5+CSS3实现Tabs选项卡特效
jQuery弹性伸缩Tabs选项卡
jQuery仿京东商品选项卡切换代码
适合移动网站的Tab选项卡切换代码
jQuery仿折800图片左右滑动切换
JS触屏滑动选项卡标签切换代码
jQuery手机端点击选项卡查看优惠券代码
def sprider(self,title_name):
"""
采集
图片切换 https://sc.chinaz.com/tag_jiaoben/tupianqiehuan.html
返回顶部 https://sc.chinaz.com/tag_jiaoben/fanhuidingbu.html
动画效果 https://sc.chinaz.com/tag_jiaoben/donghuaxiaoguo.html
倒计时 https://sc.chinaz.com/tag_jiaoben/daojishi.html
弹出层 https://sc.chinaz.com/tag_jiaoben/danchuceng.html
在线客服 https://sc.chinaz.com/jiaoben/kefu.html
手风琴 https://sc.chinaz.com/tag_jiaoben/shoufengqin.html
表单脚本 https://sc.chinaz.com/tag_jiaoben/biaodan.html
文字特效 https://sc.chinaz.com/tag_jiaoben/wenzitexiao.html
滚动条 https://sc.chinaz.com/tag_jiaoben/gundongtiao.html
瀑布流 https://sc.chinaz.com/tag_jiaoben/pubuliu.html
时钟代码 https://sc.chinaz.com/tag_jiaoben/shizhong.html
表单验证 https://sc.chinaz.com/tag_jiaoben/biaodanyanzheng.html
抽奖转盘 https://sc.chinaz.com/tag_jiaoben/dazhuanpan.html
进度条 https://sc.chinaz.com/jiaoben/jindutiao.html
播放器 https://sc.chinaz.com/tag_jiaoben/bofangqi.html
图片放大 https://sc.chinaz.com/tag_jiaoben/tupianfangda.html
时间轴 https://sc.chinaz.com/tag_jiaoben/shijianzhou.html
选项卡 https://sc.chinaz.com/tag_jiaoben/xuanxiangka.html
:return:
"""
if title_name == "图片切换":
self.first_column_name = "tag_jiaoben"
self.folder_name = "图片切换JS特效"
self.second_column_name = "tupianqiehuan"
elif title_name == "选项卡":
self.first_column_name = "tag_jiaoben"
self.folder_name = "JS选项卡"
self.second_column_name = "xuanxiangka"
elif title_name == "时间轴":
self.first_column_name = "tag_jiaoben"
self.folder_name = "JS时间轴特效"
self.second_column_name = "shijianzhou"
elif title_name == "图片放大":
self.first_column_name = "tag_jiaoben"
self.folder_name = "JS图片放大特效"
self.second_column_name = "tupianfangda"
elif title_name == "播放器":
self.first_column_name = "tag_jiaoben"
self.folder_name = "JS播放器脚本"
self.second_column_name = "bofangqi"
elif title_name == "进度条":
self.first_column_name = "jiaoben"
self.folder_name = "JS进度条"
self.second_column_name = "jindutiao"
elif title_name == "抽奖转盘":
self.first_column_name = "tag_jiaoben"
self.folder_name = "JS抽奖转盘特效"
self.second_column_name = "dazhuanpan"
elif title_name == "表单验证":
self.first_column_name = "tag_jiaoben"
self.folder_name = "JS表单验证"
self.second_column_name = "biaodanyanzheng"
elif title_name == "时钟代码":
self.first_column_name = "tag_jiaoben"
self.folder_name = "JS瀑时钟代码"
self.second_column_name = "shizhong"
elif title_name == "瀑布流":
self.first_column_name = "tag_jiaoben"
self.folder_name = "JS瀑布流特效"
self.second_column_name = "pubuliu"
elif title_name == "滚动条":
self.first_column_name = "tag_jiaoben"
self.folder_name = "JS滚动条特效"
self.second_column_name = "gundongtiao"
elif title_name == "文字特效":
self.first_column_name = "tag_jiaoben"
self.folder_name = "JS文字特效"
self.second_column_name = "wenzitexiao"
elif title_name == "表单脚本":
self.first_column_name = "tag_jiaoben"
self.folder_name = "JS表单脚本"
self.second_column_name = "biaodan"
elif title_name == "返回顶部":
self.folder_name = "JS返回顶部特效"
self.second_column_name = "fanhuidingbu"
elif title_name == "动画效果":
self.first_column_name = "tag_jiaoben"
self.folder_name = "JS特效动画效果"
self.second_column_name = "donghuaxiaoguo"
elif title_name == "倒计时":
self.first_column_name = "tag_jiaoben"
self.folder_name = "JS特效倒计时"
self.second_column_name = "daojishi"
elif title_name == "弹出层":
self.first_column_name = "tag_jiaoben"
self.folder_name = "JS特效弹出层"
self.second_column_name = "danchuceng"
elif title_name == "在线客服":
self.first_column_name = "jiaoben" # 一级目录
self.folder_name = "JS特效在线客服"
self.second_column_name = "kefu"
elif title_name == "手风琴":
self.first_column_name = "tag_jiaoben"
self.folder_name = "JS特效手风琴"
self.second_column_name = "shoufengqin"
BaseFrame().right("本次采集参数:sprider_count=" + str(self.sprider_count) + "")
BaseFrame().right("本次采集参数:title_name="+title_name+"")
BaseFrame().right("本次采集参数:second_column_name=" + self.second_column_name + "")
# self.folder_name = "JS表单验证"
self.sprider_category = title_name # 一级目录self.folder_name
second_folder_name = str(self.sprider_count) + "个" + self.folder_name #二级目录
self.sprider_type =second_folder_name
self.merchant=int(self.sprider_start_count) //int(self.max_pager)+1 #起始页码用于效率采集
#原始路径+一级目录+二级目录
self.file_path = self.save_path + os.sep + "JS" + os.sep + self.folder_name + os.sep + second_folder_name
self.save_path = self.save_path+ os.sep + "JS" + os.sep+self.folder_name +os.sep + second_folder_name+ os.sep + self.folder_name
BaseFrame().debug("开始采集ChinaZJS"+self.folder_name+"源码...")
sprider_url = (self.base_url + "/{1}/{0}.html".format(self.second_column_name,self.first_column_name))
down_path="D:\\Freedom\\Sprider\\ChinaZ\\JS\\"+self.folder_name +"\\"+second_folder_name+"\\Temp\\"
if os.path.exists(down_path) is True:
shutil.rmtree(down_path)
if os.path.exists(down_path) is False:
os.makedirs(down_path)
if os.path.exists(self.save_path ) is True:
shutil.rmtree(self.save_path )
if os.path.exists(self.save_path ) is False:
os.makedirs(self.save_path )
chrome_options = webdriver.ChromeOptions()
diy_prefs ={'profile.default_content_settings.popups': 0,
'download.default_directory':'{0}'.format(down_path)}
# 添加路径到selenium配置中
chrome_options.add_experimental_option('prefs', diy_prefs)
chrome_options.add_argument('--headless') #隐藏浏览器
# 实例化chrome浏览器时,关联忽略证书错误
driver = webdriver.Chrome(options=chrome_options)
driver.set_window_size(1280, 800) # 分辨率 1280*800
# driver.get方法将定位在给定的URL的网页,get接受url可以是任何网址,此处以百度为例
driver.get(sprider_url)
# content = driver.page_source
element_list = driver.find_elements(By.CLASS_NAME, "picblock") # 列表页面 核心内容
#element_list = div_elem.find_elements(By.CLASS_NAME, 'item')
#print(element_list.get_attribute('innerHTML'))
laster_pager_div = driver.find_element(By.CLASS_NAME, "fenye")
laster_pager_a =laster_pager_div.find_elements(By.TAG_NAME, 'a')
laster_pager_url = laster_pager_a[len(laster_pager_a) - 2]
page_end_number = int(laster_pager_url.text)
self.page_count=self.merchant
while self.page_count <= int(page_end_number): # 翻完停止
try:
if self.page_count == 1:
self.sprider_detail(driver,element_list,self.page_count,page_end_number,down_path)
pass
else:
if self.haved_sprider_count == self.sprider_count:
BaseFrame().debug("采集到达数量采集停止...")
BaseFrame().debug("开始写文章...")
self.builder_word(self.folder_name, self.word_content_list)
BaseFrame().debug("文件编写完毕,请到对应的磁盘查看word文件和下载文件!")
break
#(self.base_url + "/sort/{0}/{1}/".format(url_index, self.page_count))
#http://soft.onlinedown.net/sort/177/2/
#https://sc.chinaz.com/tag_jiaoben/tupianqiehuan_2.html
next_url = self.base_url + "/tag_jiaoben/{0}_{1}.html".format(self.second_column_name, self.page_count)
driver.get(next_url)
element_list = driver.find_elements(By.CLASS_NAME, "picblock") # 列表页面 核心内容
self.sprider_detail( driver, element_list, self.page_count, page_end_number, down_path)
pass
#print(self.page_count)
self.page_count = self.page_count + 1 # 页码增加1
except Exception as e:
print("sprider()执行过程出现错误:" + str(e))
sleep(1)
jQuery纵向TAB星期任务列表代码
Bootstrap Tabs选项卡切换代码
jQuery彩色动画Tabs选项卡特效
jQuery彩色带图标Tabs选项卡代码
jQuery响应速度快的Tabs选项卡
jQuery手机端导航分类选项卡代码
jQuery TAB选项卡切换幻灯片特效
jQuery图片选项卡商品轮播代码
jQuery多个tab切换选项卡代码
扁平实用Tabs选项卡特效
jQuery通栏大图切换焦点图代码
jQuery图片选中突出标签幻灯片代码
谷歌Material Design侧边栏特效
jQuery垂直选项卡点击显示内容
jQuery扁平水平滑动Tab选项卡
js多组图片切换选项卡代码
jQuery下拉选项卡横向导航代码
类似浏览器tab标签选项卡代码
jQuery扁平多颜色选项卡切换代码
HTML5 Tab选项卡动画切换特效
jQuery发展历程时间轴特效代码
jQuery鼠标经过显示二维码代码
新浪游戏首页jQuery幻灯片
简单复古js选项卡切换代码
jQuery左侧大图右侧小图切换代码
html5 tab滑动切换选项卡
淘宝网选项卡类型搜索框样式代码
支持移动端电脑端TAB选项卡切换
图片列表滚动jquery选项卡代码
360网站图片选项卡切换代码
jQuery水滴选项卡切换栏目代码
jquery左侧小标题选项卡切换
jQuery仿百度首页滑动选项卡代码
世界杯专题jquery选项卡切换
jquery图标控制选项卡切换代码
jQuery左右滑动选项卡切换代码
Tab标签选项卡切换jQuery特效
jQuery选项卡切换图片异步加载代码
jQuery彩色滑动切换标签选项卡
js鼠标滑过标签选项卡切换代码
jQuery定位滚动tab选项卡特效
jquery触屏滑动选项卡切换代码
jquery hover鼠标滑过选项卡切换
tab选项卡新闻列表切换效果代码
jquery图片自动播放选项卡
jquery标签控制多个视频播放切换特效
JS鼠标滑过改变标签显示内容
css3动态图标选项卡菜单
js实现tab内嵌图片滚动代码
CSS3实现Tab菜单小工具
带箭头的tab标签代码
JS网站常用简洁TAB选项卡
jQuery Tab选项卡切换代码
CSS3清新Tab菜单
jQuery微信开放平台注册表单
左右布局滑动切换Tab选项卡
简单jquery tab选项卡切换
import os
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 "zipt" == 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)
最后送大家一首诗:
山高路远坑深,
大军纵横驰奔,
谁敢横刀立马?
惟有点赞加关注大军。