★立即注册★

QQ登录

只需一步,快速开始

就爱江湖-应用库-技术分享资源网-Www.92Jh.Cn

查看: 319|回复: 0

[Web] 抖音热门视频数据单页面html源码

[复制链接]
发表于 2020-1-5 19:02:22 | 显示全部楼层
抖音热门视频数据单页面html源码图片ID:3726
偶尔上来发点干货..
这次分享的视频抖Yin的热门视频排行,虽说没什么卵用。
但是总会有人需要的,实时对接,无需人工维护。
UI随便扒的,可随便换。

源码自己新建一个文本改格式.html即可
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <title>抖音热门视频榜单</title>
  6. <meta name="keywords" content="抖音热门视频榜单" />
  7. <meta name="description" content="提供实时抖音热门短视频榜单排行" />
  8. <meta http-equiv="Cache-Control" content="no-cache">
  9. <meta http-equiv="Pragma" content="no-cache">
  10. <meta http-equiv="cache-control" content="no-store">
  11. <meta name="format-detection" content="telephone=no">
  12. <meta name="viewport" content="initial-scale=1, width=device-width, maximum-scale=1, user-scalable=no, viewport-fit=cover">
  13. <script src="https://code.jquery.com/jquery-3.4.1.min.js"></script>
  14. <style>
  15. html{width:100%;height:100%;background:#fff;background-color:#f5f5f5;color:#333;font-size:50px;font-family:Microsoft YaHei,Helvetica Neue,HelveticaNeue,Helvetica-Neue,Helvetica,BBAlpha Sans,sans-serif;user-select:none;}
  16. *{box-sizing:border-box;outline:0!important;-webkit-tap-highlight-color:transparent;tap-highlight-color:transparent;touch-callout:none;}
  17. body,div,li,p,pre,ul{margin:0;padding:0;text-align:left;}
  18. body{width:100%;height:100%;min-width:3.2rem;font-size:.24em;}
  19. li{list-style:none;}
  20. a{text-decoration:none;}
  21. body.body{padding-top:.96rem;}
  22. .navBar{position:fixed;top:0;right:0;left:0;z-index:1000;display:-ms-flexbox;display:flex;height:.96rem;background:#dc3c38;color:#fff;}
  23. .nav{position:absolute;top:0;left:50%;overflow:hidden;margin-top:.16rem;text-align:center;text-overflow:ellipsis;white-space:nowrap;font-weight:400;font-size:.36rem;line-height:.52rem;transform:translateX(-50%);-ms-flex:1;flex:1;}
  24. .nav a{color: #fff;font-size: 20px;}
  25. #foot{height:.8rem;background:#000;color:#666;text-align:center;font-size:.2rem;line-height:.8rem;}
  26. #foot a{color:#666;}
  27. #time{font-size: 16px;border-top: 1px solid #e5e5e5;padding: 5px 10px;background-color: #fff;margin-top: 15px;}
  28. #list{border-bottom:1px solid #e5e5e5;background-color:#fff;margin-bottom: 15px;}
  29. #list section{padding-top:.5rem;}
  30. #list section aside{position:relative;top:-.2rem;color:#dd403b;font-size:.26rem;}
  31. #list section aside span{position:absolute;top:-.2rem;left:.24rem;z-index:20;padding:0 .15rem;border:1px solid #dd403b;border-radius:.3rem;background:#fff;line-height:.38rem;}
  32. #list section aside span:before{left:-.24rem;}
  33. #list section aside span:after,#list section aside span:before{position:absolute;width:.22rem;height:100%;background:#fff;content:'';}
  34. #list section aside span:after{right:-.24rem;}
  35. #list .article:after,#list section aside:after{position:absolute;bottom:0;left:0;z-index:10;width:100%;height:1px;background-color:#e5e5e5;content:' ';transform:scale(1,.5);transform-origin:bottom;}
  36. #list .article{position: relative;padding: 10px 15px;color: #8e8e94;font-size: .28rem;line-height: 1.5;overflow: hidden;}
  37. #list .article .em span{font-size:12px;margin-right: 3px;}
  38. #list .article .em{float: right;color: #ff9400;font-size: .22rem;}
  39. #list .article .title{color:#333;font-size:.32rem;}
  40. #list .article .lineDot{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;line-height:1;margin-top: 10px;}
  41. #list .article .lineDot a{display:inline-block;margin-right:10px;padding:5px 10px;border:1px solid transparent;border-radius:2px;background:#4caf50;box-shadow:rgba(0,0,0,.1) 0 0 2px 0;color:#fff;font-size:12px;}
  42. #list .article .lineDot a:nth-child(2){background: #00bcd4;}
  43. #list .article .lineDot a:nth-child(3){margin-right: 0px; background: #FF5722;}
  44. </style>
  45. </head>
  46. <body class="body">
  47. <header class="navBar">
  48.     <h1 class="nav"><a href="../" title="logo">抖音热门榜单</a></h1>
  49. </header>
  50. <div id="time"></div>
  51. <div id="list">
  52.     <section id="hot"></section>
  53. </div>
  54. <div id="foot">
  55.         &#169;2020 抖音热门 <a  target="_blank" rel="nofollow">粤G备100号</a>
  56. </div>
  57. <script type="text/javascript">
  58. $(document).ready(function(){        
  59.         $.ajax({
  60.                 url: "https://umapi.top/api/hotdy.php",
  61.                 type: "GET",
  62.                 dataType: "json",
  63.                 data:"",
  64.                 async: false,
  65.                 success:function(data){
  66.                         var oDiv = document.getElementById('hot');
  67.                         var time = document.getElementById('time');
  68.                         var Divhtml = "";
  69.                         var json = data.messages;
  70.                         for(i=0;i< json.length;i++) {
  71.                                 Divhtml = Divhtml + '<article class="article"><div class="em"><span>'+json[i].six+'</span>℃</div><div class="title">'+json[i].one+'</div><span class="author">'+json[i].seven+'</span><p class="lineDot"><a href="'+json[i].four+'" target="_blank" rel="nofollow" title="背景音乐">背景音乐</a><a href="'+json[i].two+'" target="_blank" rel="nofollow" title="封面图片">封面图片</a><a href="'+json[i].three+'" target="_blank" rel="nofollow" title="播放地址">播放地址</a></p></article>';
  72.                         }
  73.                         oDiv.innerHTML = '<aside><span>热门排行</span></aside>'+Divhtml+'';
  74.                         time.innerHTML = '更新于:'+data.time+'';
  75.                 }                        
  76.         });
  77. });
  78. </script>
  79. </body>
  80. </html>
复制代码



上一篇:易语言开源完整版【呆瓜管家开源】
下一篇:通过关键词搜索下载百度图库图片

发帖求助前要善用【论坛搜索】功能,那里可能会有你要找的答案,如果你在论坛求助问题,并且已经从坛友或者管理的回复中解决了问题,请在帖子回复【已解决】。

游客
回复
您需要登录后才可以回帖 登录 | ★立即注册★

免责声明
就爱江湖所发布的一切软件逆向解密分析文章及视频、破解补丁、注册机和注册信息,仅限用于学习和研究目的。不得将上述内容用于商业或者非法途径!否则,一切后果请用户自负!
本站信息来自互联网,版权争议与本站无关。您必须在下载后的24个小时之内,从您的电脑中彻底删除上述内容。如果您喜欢该程序,请购买注册正版软件,获得正版优质服务!
如有侵权请邮件或QQ与我们联系处理。

联系QQ:2710763
邮箱:2710763@qq.com

手机版|小黑屋| 就爱江湖资源分享网 ( 粤ICP备2025451632号 ) |网站地图

GMT+8, 2025-8-4 06:28

Powered by Discuz!

© 2001-2020 Comsenz Inc.

快速回复 返回顶部 返回列表