当前位置:   article > 正文

分享66个JS时间轴特效,总有一款适合您_js 时间轴

js 时间轴

分享66个JS时间轴特效,总有一款适合您

 

66个JS时间轴特效下载链接:https://pan.baidu.com/s/1DD8EqIZjsmzpRB0pHkzUdg?pwd=pgw4 
提取码:pgw4

Python采集代码下载链接:https://wwgn.lanzoul.com/iKGwb0kye3wj

jQuery疫情防控时间轴人员行程效果
CSS3带编辑器可定制的时间轴插件
jQuery可拉动水平刻度时间轴特效
React Dom制作垂直时间轴布局
原生js跑马灯时间轴特效
jQuery日期时间轴进度条播放代码
jQuery时间轴节点分支提示代码
jQuery时间轴节点分支提示代码
jQuery产品发布更新时间轴代码
vue.js响应式时间轴特效
jQuery垂直时间轴插件

  1. import shutil
  2. import time
  3. from time import sleep
  4. from docx import Document
  5. from docx.shared import Inches
  6. from framework.base.BaseFrame import BaseFrame
  7. from sprider.business.SeleniumTools import SeleniumTools
  8. from sprider.business.SpriderTools import SpriderTools
  9. from selenium import webdriver
  10. from selenium.webdriver.common.by import By
  11. from sprider.model.SpriderEntity import SpriderEntity
  12. from sprider.access.SpriderAccess import SpriderAccess
  13. title_name = "时间轴"
  14. class ChinaZJsSelenium:
  15. base_url = "https://sc.chinaz.com/" # 采集的网址
  16. save_path = "D:\\Freedom\\Sprider\\ChinaZ\\"
  17. sprider_count = 66# 采集数量
  18. sprider_start_count=0
  19. word_content_list = []
  20. folder_name = ""
  21. page_end_number=0
  22. max_pager=20 #每页的数量
  23. haved_sprider_count =0 # 已经采集的数量
  24. page_count = 1 # 每个栏目开始业务content="text/html; charset=gb2312"
  25. filter_down_file=[]
  26. def __init__(self):
  27. pass
  28. def sprider(self,title_name):
  29. """
  30. 采集
  31. 图片切换 https://sc.chinaz.com/tag_jiaoben/tupianqiehuan.html
  32. 返回顶部 https://sc.chinaz.com/tag_jiaoben/fanhuidingbu.html
  33. 动画效果 https://sc.chinaz.com/tag_jiaoben/donghuaxiaoguo.html
  34. 倒计时 https://sc.chinaz.com/tag_jiaoben/daojishi.html
  35. 弹出层 https://sc.chinaz.com/tag_jiaoben/danchuceng.html
  36. 在线客服 https://sc.chinaz.com/jiaoben/kefu.html
  37. 手风琴 https://sc.chinaz.com/tag_jiaoben/shoufengqin.html
  38. 表单脚本 https://sc.chinaz.com/tag_jiaoben/biaodan.html
  39. 文字特效 https://sc.chinaz.com/tag_jiaoben/wenzitexiao.html
  40. 滚动条 https://sc.chinaz.com/tag_jiaoben/gundongtiao.html
  41. 瀑布流 https://sc.chinaz.com/tag_jiaoben/pubuliu.html
  42. 时钟代码 https://sc.chinaz.com/tag_jiaoben/shizhong.html
  43. 表单验证 https://sc.chinaz.com/tag_jiaoben/biaodanyanzheng.html
  44. 抽奖转盘 https://sc.chinaz.com/tag_jiaoben/dazhuanpan.html
  45. 进度条 https://sc.chinaz.com/jiaoben/jindutiao.html
  46. 播放器 https://sc.chinaz.com/tag_jiaoben/bofangqi.html
  47. 图片放大 https://sc.chinaz.com/tag_jiaoben/tupianfangda.html
  48. 时间轴 https://sc.chinaz.com/tag_jiaoben/shijianzhou.html
  49. :return:
  50. """
  51. if title_name == "图片切换":
  52. self.first_column_name = "tag_jiaoben"
  53. self.folder_name = "图片切换JS特效"
  54. self.second_column_name = "tupianqiehuan"
  55. elif title_name == "时间轴":
  56. self.first_column_name = "tag_jiaoben"
  57. self.folder_name = "JS时间轴特效"
  58. self.second_column_name = "shijianzhou"
  59. elif title_name == "图片放大":
  60. self.first_column_name = "tag_jiaoben"
  61. self.folder_name = "JS图片放大特效"
  62. self.second_column_name = "tupianfangda"
  63. elif title_name == "播放器":
  64. self.first_column_name = "tag_jiaoben"
  65. self.folder_name = "JS播放器脚本"
  66. self.second_column_name = "bofangqi"
  67. elif title_name == "进度条":
  68. self.first_column_name = "jiaoben"
  69. self.folder_name = "JS进度条"
  70. self.second_column_name = "jindutiao"
  71. elif title_name == "抽奖转盘":
  72. self.first_column_name = "tag_jiaoben"
  73. self.folder_name = "JS抽奖转盘特效"
  74. self.second_column_name = "dazhuanpan"
  75. elif title_name == "表单验证":
  76. self.first_column_name = "tag_jiaoben"
  77. self.folder_name = "JS表单验证"
  78. self.second_column_name = "biaodanyanzheng"
  79. elif title_name == "时钟代码":
  80. self.first_column_name = "tag_jiaoben"
  81. self.folder_name = "JS瀑时钟代码"
  82. self.second_column_name = "shizhong"
  83. elif title_name == "瀑布流":
  84. self.first_column_name = "tag_jiaoben"
  85. self.folder_name = "JS瀑布流特效"
  86. self.second_column_name = "pubuliu"
  87. elif title_name == "滚动条":
  88. self.first_column_name = "tag_jiaoben"
  89. self.folder_name = "JS滚动条特效"
  90. self.second_column_name = "gundongtiao"
  91. elif title_name == "文字特效":
  92. self.first_column_name = "tag_jiaoben"
  93. self.folder_name = "JS文字特效"
  94. self.second_column_name = "wenzitexiao"
  95. elif title_name == "表单脚本":
  96. self.first_column_name = "tag_jiaoben"
  97. self.folder_name = "JS表单脚本"
  98. self.second_column_name = "biaodan"
  99. elif title_name == "返回顶部":
  100. self.folder_name = "JS返回顶部特效"
  101. self.second_column_name = "fanhuidingbu"
  102. elif title_name == "动画效果":
  103. self.first_column_name = "tag_jiaoben"
  104. self.folder_name = "JS特效动画效果"
  105. self.second_column_name = "donghuaxiaoguo"
  106. elif title_name == "倒计时":
  107. self.first_column_name = "tag_jiaoben"
  108. self.folder_name = "JS特效倒计时"
  109. self.second_column_name = "daojishi"
  110. elif title_name == "弹出层":
  111. self.first_column_name = "tag_jiaoben"
  112. self.folder_name = "JS特效弹出层"
  113. self.second_column_name = "danchuceng"
  114. elif title_name == "在线客服":
  115. self.first_column_name = "jiaoben" # 一级目录
  116. self.folder_name = "JS特效在线客服"
  117. self.second_column_name = "kefu"
  118. elif title_name == "手风琴":
  119. self.first_column_name = "tag_jiaoben"
  120. self.folder_name = "JS特效手风琴"
  121. self.second_column_name = "shoufengqin"
  122. BaseFrame().right("本次采集参数:sprider_count=" + str(self.sprider_count) + "")
  123. BaseFrame().right("本次采集参数:title_name="+title_name+"")
  124. BaseFrame().right("本次采集参数:second_column_name=" + self.second_column_name + "")
  125. # self.folder_name = "JS表单验证"
  126. self.sprider_category = title_name # 一级目录self.folder_name
  127. second_folder_name = str(self.sprider_count) + "个" + self.folder_name #二级目录
  128. self.sprider_type =second_folder_name
  129. self.merchant=int(self.sprider_start_count) //int(self.max_pager)+1 #起始页码用于效率采集
  130. #原始路径+一级目录+二级目录
  131. self.file_path = self.save_path + os.sep + "JS" + os.sep + self.folder_name + os.sep + second_folder_name
  132. self.save_path = self.save_path+ os.sep + "JS" + os.sep+self.folder_name +os.sep + second_folder_name+ os.sep + self.folder_name
  133. BaseFrame().debug("开始采集ChinaZJS"+self.folder_name+"源码...")
  134. sprider_url = (self.base_url + "/{1}/{0}.html".format(self.second_column_name,self.first_column_name))
  135. down_path="D:\\Freedom\\Sprider\\ChinaZ\\JS\\"+self.folder_name +"\\"+second_folder_name+"\\Temp\\"
  136. if os.path.exists(down_path) is True:
  137. shutil.rmtree(down_path)
  138. if os.path.exists(down_path) is False:
  139. os.makedirs(down_path)
  140. if os.path.exists(self.save_path ) is True:
  141. shutil.rmtree(self.save_path )
  142. if os.path.exists(self.save_path ) is False:
  143. os.makedirs(self.save_path )
  144. chrome_options = webdriver.ChromeOptions()
  145. diy_prefs ={'profile.default_content_settings.popups': 0,
  146. 'download.default_directory':'{0}'.format(down_path)}
  147. # 添加路径到selenium配置中
  148. chrome_options.add_experimental_option('prefs', diy_prefs)
  149. chrome_options.add_argument('--headless') #隐藏浏览器
  150. # 实例化chrome浏览器时,关联忽略证书错误
  151. driver = webdriver.Chrome(options=chrome_options)
  152. driver.set_window_size(1280, 800) # 分辨率 1280*800
  153. # driver.get方法将定位在给定的URL的网页,get接受url可以是任何网址,此处以百度为例
  154. driver.get(sprider_url)
  155. # content = driver.page_source
  156. element_list = driver.find_elements(By.CLASS_NAME, "picblock") # 列表页面 核心内容
  157. #element_list = div_elem.find_elements(By.CLASS_NAME, 'item')
  158. #print(element_list.get_attribute('innerHTML'))
  159. laster_pager_div = driver.find_element(By.CLASS_NAME, "fenye")
  160. laster_pager_a =laster_pager_div.find_elements(By.TAG_NAME, 'a')
  161. laster_pager_url = laster_pager_a[len(laster_pager_a) - 2]
  162. page_end_number = int(laster_pager_url.text)
  163. self.page_count=self.merchant
  164. while self.page_count <= int(page_end_number): # 翻完停止
  165. try:
  166. if self.page_count == 1:
  167. self.sprider_detail(driver,element_list,self.page_count,page_end_number,down_path)
  168. pass
  169. else:
  170. if self.haved_sprider_count == self.sprider_count:
  171. BaseFrame().debug("采集到达数量采集停止...")
  172. BaseFrame().debug("开始写文章...")
  173. self.builder_word(self.folder_name, self.word_content_list)
  174. BaseFrame().debug("文件编写完毕,请到对应的磁盘查看word文件和下载文件!")
  175. break
  176. #(self.base_url + "/sort/{0}/{1}/".format(url_index, self.page_count))
  177. #http://soft.onlinedown.net/sort/177/2/
  178. #https://sc.chinaz.com/tag_jiaoben/tupianqiehuan_2.html
  179. next_url = self.base_url + "/tag_jiaoben/{0}_{1}.html".format(self.second_column_name, self.page_count)
  180. driver.get(next_url)
  181. element_list = driver.find_elements(By.CLASS_NAME, "picblock") # 列表页面 核心内容
  182. self.sprider_detail( driver, element_list, self.page_count, page_end_number, down_path)
  183. pass
  184. #print(self.page_count)
  185. self.page_count = self.page_count + 1 # 页码增加1
  186. except Exception as e:
  187. print("sprider()执行过程出现错误:" + str(e))
  188. sleep(1)


CSS3线性垂直时间轴代码
CSS3垂直虚线时间轴特效
jQuery横向滚动时间轴插件
jQuery发展历程时间轴代码
jQuery时间轴公司发展历程特效
jQuery自定义报警时间轴代码
Swiper水平文字时间轴代码
jQuery企业发展大事件时间轴代码
jQuery年份时间轴插件
CSS3赛车跑道时间轴样式代码
jQuery日期时间轴自动播放代码
jQuery按钮控制时间轴滚动代码
jQuery水平横向时间轴历程代码
jQuery发展历程垂直时间轴代码
Bootstrap响应式垂直时间轴代码
jQuery鱼骨样式时间轴代码
彩色垂直时间轴CSS3样式
纯CSS3竖直蛇形时间轴代码
jQuery水平时间轴样式代码
jQuery图文滚动时间轴代码
CSS3创意河流时间轴代码
CSS3工单回复时间轴代码
jQuery公司发展历程时间轴代码
jQuery动态垂直时间轴代码
jQuery带播放进度条水平时间轴
CSS3带日期大事记时间轴代码
jQuery全屏横向时间轴滑块代码
jQuery竖直线性时间轴代码
jQuery横向时间轴插件timeline
jQuery旅行者竖直时间轴代码
HTML5垂直滚动时间轴代码
公司网站发展时间轴动画特效

  1. import os
  2. def void_file(dirPath):
  3. dirs = os.listdir(dirPath) # 查找该层文件夹下所有的文件及文件夹,返回列表
  4. for file in dirs:
  5. file_full_name = dirPath + '/' + file
  6. file_ext = os.path.splitext(file_full_name)[-1]
  7. if file_ext is None or file_ext=="":
  8. continue
  9. if "rar" == str(file_ext.split(".")[1]):
  10. os.remove(file_full_name)
  11. if "zipt" == str(file_ext.split(".")[1]):
  12. os.remove(file_full_name)
  13. if "gz" == str(file_ext.split(".")[1]):
  14. os.remove(file_full_name)
  15. if "tgz" == str(file_ext.split(".")[1]):
  16. os.remove(file_full_name)
  17. # 查找指定文件夹下所有相同名称的文件
  18. def search_file(dirPath, fileName):
  19. dirs = os.listdir(dirPath) # 查找该层文件夹下所有的文件及文件夹,返回列表
  20. for currentFile in dirs: # 遍历列表
  21. absPath = dirPath + '/' + currentFile
  22. if os.path.isdir(absPath): # 如果是目录则递归,继续查找该目录下的文件
  23. search_file(absPath, fileName)
  24. elif currentFile == fileName:
  25. print(absPath) # 文件存在,则打印该文件的绝对路径
  26. os.remove(absPath)


jQuery滚动下拉动画时间轴代码
jQuery购物抢购时间轴倒计时代码
jQuery安卓发展史时间轴代码
jQuery发展历程横向时间轴代码
jQuery仿QQ空间时间轴动画特效
jQuery鱼骨图形式信息展示代码
jQuery可伸缩时间轴插件timeline
jQuery垂直时间轴样式代码
html5水平时间轴描述切换特效
纯CSS3扁平垂直时间轴特效
jQuery左右滑动切换时间轴代码
jQuery发展历程时间轴特效代码
发展简史jQuery时间轴特效
jQuery动画垂直时间轴特效代码
jQuery带时间轴美食网站焦点图代码
jquery鼠标悬停横向时间轴代码
jquery fixed固定层时间轴效果
jquery带暂停播放和时间轴幻灯片
html5时间轴设计工作记录样式
jQuery时间轴插件Timelinr
大气的jQuery树型时间轴特效
jquery网站发展历史时间轴
jquery时间表插件b1njTimeline
 

最后送大家一首诗:

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

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/我家小花儿/article/detail/130219?site
推荐阅读
相关标签
  

闽ICP备14008679号