分享112个JS特效动画效果,总有一款适合您
112个JS特效动画效果下载链接:https://pan.baidu.com/s/1uC61pccye_oYqBnUugIuig?pwd=u21z 提取码:u21z
Python采集代码下载链接:https://wwgn.lanzoul.com/iKGwb0kye3wj
HTML5不断繁衍的花动画特效
HTML5 SVG情人节盒子动画特效
小熊拉手CSS3情人节动画特效
HTML5 SVG糖果爱心动画特效
HTML5绘制彩色圆圈动画特效
CSS3转盘抽奖动画特效样式
纯CSS3卡通太阳照射动画特效
CSS3自行车3D旋转展示动画特效
HTML5 Canvas大波浪动画特效
纯CSS3制作收音机动画特效
CSS3鼠标经过动画显示图片代码
CSS3彩色泥装液体摇晃动画特效
CSS3橘色花朵变换动画特效
纯CSS3流星雨划过动画特效
纯CSS3制作抖动的音箱特效
HTML5 Canvas碎纸片扩散动画特效
HTML5几何图形缩放动画特效
纯CSS3火柴燃烧动画特效
CSS3 SVG文字线条填色动画特效
HTML5 SVG变色旋涡动画特效
CSS3绘制白天夜里动画场景特效
纯CSS3文字切片组合动画特效
CSS3万圣节巫婆魔法场景特效
HTML5流星划过背景动画特效
HTML5 Canvas图形密集动画特效
jQuery万圣节礼物盒动画特效
HTML5 Canvas冰冻花朵特效
CSS3灯塔旋转照射动画特效
HTML5几何图形碰撞磁力动画特效
HTML5 Canvas圆点发光特效
Animate.css美元飘落动画特效
纯CSS3跳动的幽灵动画特效
HTML5点击云雾水彩散开特效
HTML5科技感六边型动画特效
CSS3原子结构模型动画特效
CSS3 SVG点击爱心散开动画特效
HTML5 SVG瓦斯灯泡动画特效
CSS3绘制万圣节动画场景特效
HTML5 Canvas万花筒动画特效
纯CSS3手指打手势动画特效
HTML5 3D方块柱形图起伏动画特效
HTML5行星围绕太阳轨迹运动特效
HTML5酷炫的倒三角动画特效
HTML5绘制3D城市模型动画特效
HTML5 Canvas字母变化动画特效
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
class ChinaZJsSelenium:
base_url = "https://sc.chinaz.com/" # 采集的网址
save_path = "D:\\Freedom\\Sprider\\ChinaZ\\"
sprider_count = 112# 采集数量
sprider_start_count=111
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=[]
纯CSS3方块翻转加载动画特效
躺在床上看手机CSS3人物特效
纯CSS3人物太空步动画特效
HTML5 Canvas圆点发散动画特效
HTML5 Canvas模拟机场线路图特效
HTML5 Canvas圆点视差动画特效
H5随机变化的背景图案动画特效
HTML5虚拟水槽物体流动特效
jQuery页面滚动元素动画特效
HTML5下雨加闪电动画场景特效
CSS3层叠菜单打开动画特效
HTML5 SVG盆栽植物动画特效
HTML5 Canvas波浪动画特效
HTML5 Canvas霓虹灯隧道动画特效
HTML5网状结构节点动画特效
点击动画展开复选框CSS3特效
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
:return:
"""
if title_name == "图片切换":
self.folder_name = "图片切换JS特效"
self.second_column_name = "tupianqiehuan"
elif title_name == "返回顶部":
self.folder_name = "JS返回顶部特效"
self.second_column_name = "fanhuidingbu"
elif title_name == "动画效果":
self.folder_name = "JS特效动画效果"
self.second_column_name = "donghuaxiaoguo"
first_column_name = "tag_jiaoben" # 一级目录
BaseFrame().right("本次采集参数:title_name="+title_name+"")
BaseFrame().right("本次采集参数:second_column_name=" + self.second_column_name + "")
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 + "/tag_jiaoben/{0}.html".format(self.second_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)
HTML5 Canvas机器人跳舞动画特效
HTML5 SVG鼠标经过跟随动画特效
纯CSS3属性绘制鸡尾酒动画特效
HTML5 Canvas捧着爱心的喵咪特效
Canvas连接粒子分解动画特效
jQuery苹果产品介绍动画特效
three.js绘制文字光晕动画特效
HTML5 Canvas卫星碰撞动画特效
CSS3动画水墨风格带音乐特效
HTML5彩色发光喷泉动画特效
纯CSS3抽屉打开关闭动画特效
纯CSS3制作磁带播放动画特效
HTML5 Canvas虫洞旋涡动画特效
Canvas游动的蛇虫动画特效
Canvas沙子流动动画特效
HTML5 3D卷纸表单填写动画特效
纯CSS3几何图形上升动画特效
jQuery图片配文字动画切换代码
Canvas圆形的泡沫动画特效
jQuery+CSS3一天时段动画特效
CSS3网页滚动图片元素动画特效
Canvas酷炫3D拖动圆点动画特效
WickedCSS3动画库演示特效
纯CSS3圆形线条旋涡动画特效
HTML5 SVG长按左键挥手动画特效
Canvas液体流动火焰动画特效
html5 canvas一群鸟飞行特效
H5 Canvas抽象花纹动画特效
纯CSS3山村风车动画特效
html5 canvas波浪隧道动画特效
jQuery橙汁水汽泡动画特效
猫咪桌上睡觉CSS3动画特效
CSS3脸部表情鼠标控制特效
天空中白云飘动CSS3特效
CSS3电脑连接服务器动画特效
HTML5 Canvas水彩画板涂色特效
HTML5 SVG猫眼动画特效
纯CSS3逼真的楼梯动画特效
纯CSS3旋转原子动画特效
纯CSS3悬停文字边框动画特效
jQuery数字滚动点击开始代码
Canvas碎纸屑闪烁动画特效
HTML5 SVG变色龙动画特效
HTML5 Canvas龙卷风特效
CSS3基于SVG粒子花环动画特效
HTML5英文字母ABCD动画特效
H5 Canvas雷电打出文字特效
Canvas宇宙黑洞动画特效
CSS3卡通四季变化动画特效
html5 canvas海底水草动画特效
纯CSS3三维立体方块动画特效
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)