|
|
|
|
<!DOCTYPE html>
|
|
|
|
|
<html lang="en">
|
|
|
|
|
|
|
|
|
|
<head>
|
|
|
|
|
<meta charset="utf-8">
|
|
|
|
|
<meta content="width=device-width, initial-scale=1.0" name="viewport">
|
|
|
|
|
|
|
|
|
|
<title>豆瓣Top250数据分析</title>
|
|
|
|
|
<meta content="" name="descriptison">
|
|
|
|
|
<meta content="" name="keywords">
|
|
|
|
|
<meta name = "referrer" content="never"> <!--访问豆瓣海报图片所需参数-->
|
|
|
|
|
<!-- Favicons -->
|
|
|
|
|
<link href="../static/assets/img/favicon.png" rel="icon">
|
|
|
|
|
|
|
|
|
|
<!-- Google Fonts -->
|
|
|
|
|
<link href="https://fonts.googleapis.com/css?family=Open+Sans:300,300i,400,400i,600,600i,700,700i|Raleway:300,300i,400,400i,600,600i,700,700i,900" rel="stylesheet">
|
|
|
|
|
|
|
|
|
|
<!-- Vendor CSS Files -->
|
|
|
|
|
<link href="../static/assets/vendor/bootstrap/css/bootstrap.min.css" rel="stylesheet">
|
|
|
|
|
<link href="../static/assets/vendor/icofont/icofont.min.css" rel="stylesheet">
|
|
|
|
|
<link href="../static/assets/vendor/boxicons/css/boxicons.min.css" rel="stylesheet">
|
|
|
|
|
<link href="../static/assets/vendor/animate.css/animate.min.css" rel="stylesheet">
|
|
|
|
|
<link href="../static/assets/vendor/venobox/venobox.css" rel="stylesheet">
|
|
|
|
|
<link href="../static/assets/vendor/aos/aos.css" rel="stylesheet">
|
|
|
|
|
|
|
|
|
|
<!-- Template Main CSS File -->
|
|
|
|
|
<link href="../static/assets/css/style.css" rel="stylesheet">
|
|
|
|
|
|
|
|
|
|
<!-- =======================================================
|
|
|
|
|
* Template Name: Mamba - v2.0.1
|
|
|
|
|
* Template URL: https://bootstrapmade.com/mamba-one-page-bootstrap-template-free/
|
|
|
|
|
* Author: BootstrapMade.com
|
|
|
|
|
* License: https://bootstrapmade.com/license/
|
|
|
|
|
======================================================== -->
|
|
|
|
|
<style>
|
|
|
|
|
table tr{
|
|
|
|
|
display: flex;
|
|
|
|
|
text-align: center;
|
|
|
|
|
}
|
|
|
|
|
table tr td{
|
|
|
|
|
padding-bottom: 15px;
|
|
|
|
|
padding-top: 15px;
|
|
|
|
|
text-align: center;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.id{
|
|
|
|
|
flex: 1;
|
|
|
|
|
text-align: center;
|
|
|
|
|
}
|
|
|
|
|
.cName{
|
|
|
|
|
flex: 2;
|
|
|
|
|
text-align: center;
|
|
|
|
|
}
|
|
|
|
|
.eName{
|
|
|
|
|
flex: 2;
|
|
|
|
|
text-align: center;
|
|
|
|
|
}
|
|
|
|
|
.score{
|
|
|
|
|
flex: 1;
|
|
|
|
|
text-align: center;
|
|
|
|
|
}
|
|
|
|
|
.evaluation{
|
|
|
|
|
flex: 1;
|
|
|
|
|
text-align: center;
|
|
|
|
|
}
|
|
|
|
|
.findinfo{
|
|
|
|
|
flex: 6;
|
|
|
|
|
text-align: center;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.img{
|
|
|
|
|
text-align: center;
|
|
|
|
|
flex: 4;
|
|
|
|
|
}
|
|
|
|
|
.pic{
|
|
|
|
|
width: 120px;
|
|
|
|
|
height: 160px;
|
|
|
|
|
}
|
|
|
|
|
/* 分页的css */
|
|
|
|
|
.pagination{
|
|
|
|
|
width: 100%;
|
|
|
|
|
margin: 0 auto;
|
|
|
|
|
margin-top: 30px;
|
|
|
|
|
margin-left: 100px;
|
|
|
|
|
text-align: center;
|
|
|
|
|
}
|
|
|
|
|
button:not(.download_button){
|
|
|
|
|
width: 55px;
|
|
|
|
|
height: 50px;
|
|
|
|
|
font-size: 13px;
|
|
|
|
|
font-family: 微软雅黑;
|
|
|
|
|
margin: 5px;
|
|
|
|
|
text-align: center;
|
|
|
|
|
border-radius: 10px;
|
|
|
|
|
border-width: 0px;
|
|
|
|
|
box-shadow: 0 8px 16px 0 rgba(0,0,0,0.2), 0 6px 20px 0 rgba(0,0,0,10%);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.download_button{
|
|
|
|
|
padding:20px;
|
|
|
|
|
font-size: 13px;
|
|
|
|
|
font-family: 微软雅黑;
|
|
|
|
|
margin: 5px;
|
|
|
|
|
text-align: center;
|
|
|
|
|
border-radius: 10px;
|
|
|
|
|
border-width: 0px;
|
|
|
|
|
box-shadow: 0 8px 16px 0 rgba(0,0,0,0.2), 0 0px 5px 0 rgba(0,0,0,10%);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.download_button:hover{
|
|
|
|
|
padding:20px;
|
|
|
|
|
font-size: 13px;
|
|
|
|
|
font-family: 微软雅黑;
|
|
|
|
|
margin: 5px;
|
|
|
|
|
text-align: center;
|
|
|
|
|
border-radius: 10px;
|
|
|
|
|
border-width: 0px;
|
|
|
|
|
background-color: #6aa3d5;
|
|
|
|
|
box-shadow: 0 8px 16px 0 rgba(0,0,0,0.2), 0 6px 20px 0 rgba(0,0,0,10%);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.download_button:active{
|
|
|
|
|
padding:20px;
|
|
|
|
|
font-size: 13px;
|
|
|
|
|
font-family: 微软雅黑;
|
|
|
|
|
margin: 5px;
|
|
|
|
|
text-align: center;
|
|
|
|
|
border-radius: 10px;
|
|
|
|
|
border-width: 0px;
|
|
|
|
|
background-color: silver;
|
|
|
|
|
box-shadow: 0 8px 16px 0 rgba(0,0,0,0.2), 0 6px 10px 0 rgba(0,0,0,10%);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
button:hover:not(.download_button:hover){
|
|
|
|
|
width: 55px;
|
|
|
|
|
height: 50px;
|
|
|
|
|
font-size: 13px;
|
|
|
|
|
font-family: 微软雅黑;
|
|
|
|
|
margin: 5px;
|
|
|
|
|
text-align: center;
|
|
|
|
|
border-radius: 10px;
|
|
|
|
|
border-width: 0px;
|
|
|
|
|
box-shadow: 0 8px 16px 0 rgba(0,0,0,0.2), 0 6px 20px 0 rgba(0,0,0,10%);
|
|
|
|
|
background-color: #6aa3d5;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
button:active:not(.download_button:active){
|
|
|
|
|
width: 55px;
|
|
|
|
|
height: 50px;
|
|
|
|
|
font-size: 13px;
|
|
|
|
|
font-family: 微软雅黑;
|
|
|
|
|
margin: 5px;
|
|
|
|
|
text-align: center;
|
|
|
|
|
border-radius: 10px;
|
|
|
|
|
border-width: 0px;
|
|
|
|
|
box-shadow: 0 8px 16px 0 rgba(0,0,0,0.2), 0 6px 20px 0 rgba(0,0,0,50%);
|
|
|
|
|
background-color: silver;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.download_list{
|
|
|
|
|
list-style-type: none;
|
|
|
|
|
text-align: right;
|
|
|
|
|
padding-right: 15px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
</style>
|
|
|
|
|
</head>
|
|
|
|
|
|
|
|
|
|
<body>
|
|
|
|
|
<!-- ======= Header ======= -->
|
|
|
|
|
<header id="header">
|
|
|
|
|
<div class="container">
|
|
|
|
|
|
|
|
|
|
<div class="logo float-left">
|
|
|
|
|
<h1 class="text-light"><a href="/first"><span>CATCH</span></a></h1>
|
|
|
|
|
<!-- Uncomment below if you prefer to use an image logo -->
|
|
|
|
|
<!-- <a href="index.html"><img src="../static/assets/img/logo.png" alt="" class="img-fluid"></a>-->
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<nav class="nav-menu float-right d-none d-lg-block">
|
|
|
|
|
<ul>
|
|
|
|
|
<li><a href="/first">首页</a></li>
|
|
|
|
|
<li class="active"><a href="/separate">电影</a></li>
|
|
|
|
|
<li><a href="/score">评分</a></li>
|
|
|
|
|
<li><a href="/word">词云</a></li>
|
|
|
|
|
<li><a href="/team">团队</a></li>
|
|
|
|
|
</ul>
|
|
|
|
|
</nav><!-- .nav-menu -->
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
</header><!-- End Header -->
|
|
|
|
|
|
|
|
|
|
<!-- ======= Our Team Section ======= -->
|
|
|
|
|
<section id="team" class="team">
|
|
|
|
|
<div class="container">
|
|
|
|
|
<div class="section-title">
|
|
|
|
|
<h2>豆瓣电影Top250名单</h2>
|
|
|
|
|
</div>
|
|
|
|
|
<!-- ======= Counts Section ======= -->
|
|
|
|
|
<section class="counts section-bg">
|
|
|
|
|
<ul class="download_list">
|
|
|
|
|
<li>
|
|
|
|
|
<button class = "download_button" onclick="download()">下载EXCEL</button>
|
|
|
|
|
<button class = "download_button" onclick="updateDBTb1()">更新数据库</button>
|
|
|
|
|
</li>
|
|
|
|
|
</ul>
|
|
|
|
|
<div class="container">
|
|
|
|
|
<table class="table table-striped">
|
|
|
|
|
<tr>
|
|
|
|
|
<td class="img">影片海报</td>
|
|
|
|
|
<td class="cName">影片中文名</td>
|
|
|
|
|
<td class="eName">影片外国名</td>
|
|
|
|
|
<td class="score">影片评分</td>
|
|
|
|
|
<td class="evaluation">评价人数</td>
|
|
|
|
|
<td class="findinfo">概述</td>
|
|
|
|
|
</tr>
|
|
|
|
|
{% for movie in movies %}
|
|
|
|
|
<tr>
|
|
|
|
|
<td class = "img">
|
|
|
|
|
<img class="pic" src= {{ movie[1] }}>
|
|
|
|
|
</td>
|
|
|
|
|
<td class="cName">
|
|
|
|
|
<a href="{{ movie[0] }}" target="_blank">{{ movie[2] }}</a>
|
|
|
|
|
</td>
|
|
|
|
|
<td class="eName">{{ movie[3] }}</td>
|
|
|
|
|
<td class="score">{{ movie[4] }}</td>
|
|
|
|
|
<td class="evaluation">{{ movie[5] }}</td>
|
|
|
|
|
<td class="findinfo">{{ movie[6] }}</td>
|
|
|
|
|
</tr>
|
|
|
|
|
{% endfor %}
|
|
|
|
|
</table>
|
|
|
|
|
<div class="pagination">
|
|
|
|
|
<!-- 上一页 -->
|
|
|
|
|
{% if page == 1 %}
|
|
|
|
|
<button class="nextpage" onclick="javascript:alert('已经是第一页了!!!')">上一页</button>
|
|
|
|
|
{% else %}
|
|
|
|
|
<button class="lastpage" onclick="window.location.href='/movie/start={{ page-1 }}'">上一页</button>
|
|
|
|
|
{% endif %}
|
|
|
|
|
<!-- 中间10页 -->
|
|
|
|
|
{% for i in range(1,11) %}
|
|
|
|
|
{% if page == i %}
|
|
|
|
|
<a href="/movie/start={{i}}">
|
|
|
|
|
<button class="onpage{{i}}" style="background-color: #0099ff;">{{i}}</button>
|
|
|
|
|
</a>
|
|
|
|
|
{% else %}
|
|
|
|
|
<a href="/movie/start={{i}}">
|
|
|
|
|
<button class="onpage{{i}}" >{{i}}</button>
|
|
|
|
|
</a>
|
|
|
|
|
{% endif %}
|
|
|
|
|
{% endfor %}
|
|
|
|
|
<!-- 下一页 -->
|
|
|
|
|
{% if page == 10 %}
|
|
|
|
|
<button class="nextpage" onclick="javascript:alert('已经是最后一页!!!')">下一页</button>
|
|
|
|
|
{% else %}
|
|
|
|
|
<button class="nextpage" onclick="window.location.href='/movie/start={{ page + 1 }}'">下一页</button>
|
|
|
|
|
{% endif %}
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</section><!-- End Counts Section -->
|
|
|
|
|
</div>
|
|
|
|
|
</section><!-- End Our Team Section -->
|
|
|
|
|
|
|
|
|
|
<!-- ======= Footer ======= -->
|
|
|
|
|
<footer id="footer">
|
|
|
|
|
<div class="container">
|
|
|
|
|
<div class="copyright">
|
|
|
|
|
@sakula <strong><span>F*35#213</span></strong>Welcome
|
|
|
|
|
</div>
|
|
|
|
|
<div class="credits">
|
|
|
|
|
<!-- All the links in the footer should remain intact. -->
|
|
|
|
|
<!-- You can delete the links only if you purchased the pro version. -->
|
|
|
|
|
<!-- Licensing information: https://bootstrapmade.com/license/ -->
|
|
|
|
|
<!-- Purchase the pro version with working PHP/AJAX contact form: https://bootstrapmade.com/mamba-one-page-bootstrap-template-free/ -->
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</footer><!-- End Footer -->
|
|
|
|
|
|
|
|
|
|
<a href="#" class="back-to-top"><i class="icofont-simple-up"></i></a>
|
|
|
|
|
|
|
|
|
|
<!-- Vendor JS Files -->
|
|
|
|
|
<script src="../static/assets/vendor/jquery/jquery.min.js"></script>
|
|
|
|
|
<script src="../static/assets/vendor/bootstrap/js/bootstrap.bundle.min.js"></script>
|
|
|
|
|
<script src="../static/assets/vendor/jquery.easing/jquery.easing.min.js"></script>
|
|
|
|
|
<script src="../static/assets/vendor/php-email-form/validate.js"></script>
|
|
|
|
|
<script src="../static/assets/vendor/jquery-sticky/jquery.sticky.js"></script>
|
|
|
|
|
<script src="../static/assets/vendor/venobox/venobox.min.js"></script>
|
|
|
|
|
<script src="../static/assets/vendor/waypoints/jquery.waypoints.min.js"></script>
|
|
|
|
|
<script src="../static/assets/vendor/counterup/counterup.min.js"></script>
|
|
|
|
|
<script src="../static/assets/vendor/isotope-layout/isotope.pkgd.min.js"></script>
|
|
|
|
|
<script src="../static/assets/vendor/aos/aos.js"></script>
|
|
|
|
|
|
|
|
|
|
<!-- Template Main JS File -->
|
|
|
|
|
<script src="../static/assets/js/main.js"></script>
|
|
|
|
|
<script>
|
|
|
|
|
function updateDBTb1(){
|
|
|
|
|
alert("数据库更新时间较长,请耐心等待弹出网页的加载!")
|
|
|
|
|
window.open("/updateDBTb1")
|
|
|
|
|
}
|
|
|
|
|
</script>
|
|
|
|
|
<script>
|
|
|
|
|
function download(){
|
|
|
|
|
window.open("/top250.xls")
|
|
|
|
|
}
|
|
|
|
|
</script>
|
|
|
|
|
</body>
|
|
|
|
|
|
|
|
|
|
</html>
|