提交 fda6754d 编写于 作者: 梦想橡皮擦's avatar 梦想橡皮擦 💬

爬虫训练场

上级 3df57db5
......@@ -9,3 +9,8 @@ def index():
"msg": "后台传递信息"
}
return render_template('index.html', title="梦想橡皮擦", item=item)
@app.route('/bt')
def bt():
return render_template('bt.html')
\ No newline at end of file
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>BT 组件展示,爬虫训练场,版权:梦想橡皮擦</title>
<link rel="stylesheet" href="https://cdn.staticfile.org/twitter-bootstrap/5.1.1/css/bootstrap.min.css">
</head>
<body>
<div class="container pt-5 pb-5">
<nav class="navbar navbar-expand-sm bg-dark navbar-dark">
<div class="container-fluid">
<a href="#" class="navbar-brand">
<img src="/static/images/sucai.png" style="width:40px;" class="rounded-pill" alt="">
爬虫训练场</a>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#collapsibleNavbar">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="collapsibleNavbar">
<ul class="navbar-nav">
<li class="nav-item">
<a class="nav-link" href="#">博客</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">下载</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">学习</a>
</li>
</ul>
</div>
</div>
</nav>
<!-- 轮播 -->
<div id="demo" class="carousel carousel-fade" data-bs-ride="carousel" data-interval="5000">
<!-- 指示符 -->
<div class="carousel-indicators">
<button type="button" data-bs-target="#demo" data-bs-slide-to="0" class="active"></button>
<button type="button" data-bs-target="#demo" data-bs-slide-to="1"></button>
<button type="button" data-bs-target="#demo" data-bs-slide-to="2"></button>
</div>
<!-- 轮播图片 -->
<div class="carousel-inner">
<div class="carousel-item active">
<img decoding="async" src="/static/images/l1.png" class="d-block"
style="width:100%">
<div class="carousel-caption">
<h3>Image 1</h3>
<p>Image 1 description</p>
</div>
</div>
<div class="carousel-item">
<img decoding="async" src="/static/images/l2.png" class="d-block"
style="width:100%">
</div>
<div class="carousel-item">
<img decoding="async" src="/static/images/l3.png" class="d-block"
style="width:100%">
</div>
</div>
<!-- 左右切换按钮 -->
<button class="carousel-control-prev" type="button" data-bs-target="#demo" data-bs-slide="prev">
<span class="carousel-control-prev-icon"></span>
</button>
<button class="carousel-control-next" type="button" data-bs-target="#demo" data-bs-slide="next">
<span class="carousel-control-next-icon"></span>
</button>
</div>
<br>
<ul class="nav nav-tabs nav-justified">
<li class="nav-item ">
<a class="nav-link active" data-bs-toggle="tab" href="#blog">博客</a>
</li>
<li class="nav-item">
<a class="nav-link" data-bs-toggle="tab" href="#download">下载</a>
</li>
<li class="nav-item">
<a class="nav-link" data-bs-toggle="tab" href="#edu">学习</a>
</li>
<li class="nav-item">
<a class="nav-link" data-bs-toggle="tab" href="#com">社区</a>
</li>
</ul>
<!-- Tab panes-->
<div class="tab-content">
<div class="tab-pane container active" id="blog">博客卡片</div>
<div class="tab-pane container fade" id="download">下载卡片</div>
<div class="tab-pane container fade" id="edu">学习卡片</div>
<div class="tab-pane container fade" id="com">社区卡片</div>
</div>
<br>
<button type="button" class="btn">基础</button>
<button type="button" class="btn btn-primary">主要</button>
<button type="button" class="btn btn-secondary">次要</button>
<button type="button" class="btn btn-success">成功</button>
<button type="button" class="btn btn-info">信息</button>
<button type="button" class="btn btn-warning">警告</button>
<button type="button" class="btn btn-danger">危险</button>
<button type="button" class="btn btn-dark">深色</button>
<button type="button" class="btn btn-light">浅色</button>
<button type="button" class="btn btn-link">链接</button>
<hr>
<button type="button" class="btn btn-outline-primary">主要</button>
<button type="button" class="btn btn-outline-secondary">次要</button>
<button type="button" class="btn btn-outline-success">成功</button>
<button type="button" class="btn btn-outline-info">信息</button>
<button type="button" class="btn btn-outline-warning">警告</button>
<button type="button" class="btn btn-outline-danger">危险</button>
<button type="button" class="btn btn-outline-dark">深色</button>
<button type="button" class="btn btn-outline-light text-dark">浅色</button>
<hr>
<button type="button" class="btn btn-primary btn-lg">大按钮</button>
<button type="button" class="btn btn-primary">默认</button>
<button type="button" class="btn btn-primary btn-sm">小按钮</button>
<hr>
<button type="button" class="btn btn-primary active">可用按钮</button>
<button type="button" class="btn btn-primary" disabled>不可用按钮</button>
<button type="button" class="btn btn-primary disabled">不可用按钮</button>
<hr>
<div class="btn-group">
<button type="button" class="btn btn-primary">梦想橡皮擦</button>
<button type="button" class="btn btn-primary">擦哥</button>
<button type="button" class="btn btn-primary">擦姐</button>
</div>
<hr>
<ul>
<li class="list-group-item">
梦想橡皮擦
<span class="badge bg-success rounded-pill">New</span>
</li>
</ul>
<hr>
<div class="progress">
<div class="progress-bar" style="width: 25%"></div>
</div>
<hr>
<div class="progress" style="height:20px;">
<div class="progress-bar progress-bar-striped progress-bar-animated" style="width:40%;">40%</div>
</div>
<hr>
<div class="progress">
<div class="progress-bar bg-success" style="width:50%">
空闲
</div>
<div class="progress-bar bg-warning" style="width:20%">
告警
</div>
<div class="progress-bar bg-danger" style="width:30%">
危险
</div>
</div>
<hr>
<div class="spinner-grow text-muted spinner-grow-sm"></div>
<div class="spinner-grow text-primary spinner-grow-lg"></div>
<div class="spinner-grow text-success spinner-grow-lg"></div>
<div class="spinner-grow text-info"></div>
<div class="spinner-grow text-warning"></div>
<div class="spinner-grow text-danger"></div>
<div class="spinner-grow text-secondary"></div>
<div class="spinner-grow text-dark"></div>
<div class="spinner-grow text-light"></div>
<hr>
<button class="btn btn-primary">
<span class="spinner-border spinner-border-sm"></span>
</button>
<button class="btn btn-primary">
<span class="spinner-border spinner-border-sm"></span>
Loading..
</button>
<hr>
<nav aria-label="Page navigation example">
<ul class="pagination">
<li class="page-item"><a class="page-link" href="#">上一页</a></li>
<li class="page-item"><a class="page-link" href="#">1</a></li>
<li class="page-item active"><a class="page-link " href="#">2</a></li>
<li class="page-item"><a class="page-link" href="#">3</a></li>
<li class="page-item"><a class="page-link" href="#">下一页</a></li>
</ul>
</nav>
<hr>
<ul class="breadcrumb">
<li class="breadcrumb-item"><a href="#">列表</a></li>
<li class="breadcrumb-item"><a href="#">详情页</a></li>
<li class="breadcrumb-item active">梦想橡皮擦</li>
</ul>
<hr>
<ul class="list-group">
<li class="list-group-item">Item 1</li>
<li class="list-group-item">Item 2</li>
<li class="list-group-item">Item 3</li>
</ul>
<ul class="list-group pt-2 pb-5">
<li class="list-group-item list-group-item-primary active">Item 1</li>
<li class="list-group-item list-group-item-primary">Item 2</li>
<li class="list-group-item list-group-item-primary">Item 3</li>
</ul>
<hr>
<div class="list-group pb-5">
<a href="#" class="list-group-item list-group-item-action">第一项</a>
<a href="#" class="list-group-item list-group-item-action">第二项</a>
<a href="#" class="list-group-item list-group-item-action">第三项</a>
</div>
<ul class="list-group list-group-horizontal pb-5">
<li class="list-group-item">博客<span class="badge bg-danger rounded-pill">12</span></li>
<li class="list-group-item">论坛</li>
<li class="list-group-item">下载</li>
<li class="list-group-item">商城</li>
</ul>
<hr>
<div class="card" style="width: 18rem;">
<div class="card-body">
<h5 class="card-title">第一个爬虫项目</h5>
<p class="card-text">最普通的爬虫,点击进入是一些学校清单展示</p>
<a href="#" class="btn btn-primary">点击进入</a>
</div>
<img src="/static/images/sucai.png" class="card-img-bottom" alt="...">
</div>
<div class="card">
<div class="card-body">基础的卡片</div>
</div>
<hr>
<div class="card">
<div class="card-header">页眉</div>
<div class="card-body">内容</div>
<div class="card-footer">页脚</div>
</div>
<hr>
<div class="dropdown">
<button class="btn btn-secondary dropdown-toggle" type="button" id="dropdownMenuButton" data-toggle="dropdown"
aria-haspopup="true" aria-expanded="false">
下拉列表
</button>
<div class="dropdown-menu" aria-labelledby="dropdownMenuButton">
<a class="dropdown-item" href="#">Action</a>
<a class="dropdown-item" href="#">Another action</a>
<a class="dropdown-item" href="#">Something else here</a>
</div>
</div>
<hr>
<div class="dropdown">
<button type="button" class="btn btn-primary dropdown-toggle" data-bs-toggle="dropdown">
下拉按钮
</button>
<ul class="dropdown-menu">
<li><a class="dropdown-item" href="#">链接 1</a></li>
<li><a class="dropdown-item" href="#">链接 2</a></li>
<li><h5 class="dropdown-header">分组标题</h5></li>
<li>
<hr class="dropdown-divider"></hr>
</li>
<li><a class="dropdown-item" href="#">链接 3</a></li>
</ul>
</div>
</div>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.2.3/dist/js/bootstrap.bundle.min.js"></script>
</body>
</html>
\ No newline at end of file
......@@ -8,13 +8,289 @@
</head>
<body>
<nav class="navbar navbar-expand-sm bg-dark navbar-dark">
<div class="container-fluid">
<a href="#" class="navbar-brand">
<img src="/static/images/sucai.png" style="width:2rem;" class="rounded-pill" alt=""/>爬虫训练场</a>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#collapsibleNavbar">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="collapsibleNavbar">
<ul class="navbar-nav">
<li class="nav-item">
<a href="#" class="nav-link">案例场</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">爬虫博客</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">社群</a>
</li>
</ul>
</div>
</div>
</nav>
<div class="container">
<img src="{{url_for('static',filename='images/sucai.png')}}" alt="" width="300" class="rounded">
<img src="{{url_for('static',filename='images/sucai.png')}}" alt="" width="300" class="rounded-circle">
<img src="{{url_for('static',filename='images/sucai.png')}}" alt="" width="300" class="img-thumbnail">
<div class="container pt-5">
<h3>普通爬虫</h3>
<hr>
<div class="row align-items-stretch">
<div class="col-sm-6 col-md-3 mt-2">
<div class="card text-center border-secondary rounded-5 shadow-sm" style="height:268px;">
<div class="card-header">
<h4 class="card-title">单页爬虫</h4>
</div>
<div class="card-body">
<p class="card-text">单独一个网页数据展示,可直接采集,单独一个网页数据展示,可直接采集</p>
</div>
<div class="card-footer ">
<a href="#" class="card-link text-decoration-none">学习博客</a>
<a href="#" class="card-link text-decoration-none">案例详情</a>
</div>
</div>
</div>
<div class="col-sm-6 col-md-3 mt-2">
<div class="card text-center border-secondary rounded-5 shadow-sm" style="height:268px;">
<div class="card-header">
<h4 class="card-title">单页爬虫</h4>
</div>
<div class="card-body">
<p class="card-text">单独一个网页数据展示,可直接采集,单独一个网页数据展示,可直接采集</p>
</div>
<div class="card-footer">
<a href="#" class="card-link text-decoration-none">学习博客</a>
<a href="#" class="card-link text-decoration-none">案例详情</a>
</div>
</div>
</div>
<div class="col-sm-6 col-md-3 mt-2">
<div class="card text-center border-secondary rounded-5 shadow-sm" style="height:268px;">
<div class="card-header">
<h4 class="card-title">单页爬虫</h4>
</div>
<div class="card-body">
<p class="card-text">单独一个网页数据展示,可直接采集,单独一个网页数据展示,可直接采集</p>
</div>
<div class="card-footer">
<a href="#" class="card-link text-decoration-none">学习博客</a>
<a href="#" class="card-link text-decoration-none">案例详情</a>
</div>
</div>
</div>
<div class="col-sm-6 col-md-3 mt-2">
<div class="card text-center border-secondary rounded-5 shadow-sm" style="height:268px;">
<div class="card-header">
<h4 class="card-title">单页爬虫</h4>
</div>
<div class="card-body">
<p class="card-text">单独一个网页数据展示,可直接采集,单独一个网页数据展示,可直接采集</p>
</div>
<div class="card-footer">
<a href="#" class="card-link text-decoration-none">学习博客</a>
<a href="#" class="card-link text-decoration-none">案例详情</a>
</div>
</div>
</div>
</div>
<div class="row align-items-stretch">
<div class="col-sm-6 col-md-3 mt-2">
<div class="card text-center border-secondary rounded-5 shadow-sm" style="height:268px;">
<div class="card-header">
<h4 class="card-title">单页爬虫</h4>
</div>
<div class="card-body">
<p class="card-text">单独一个网页数据展示,可直接采集,单独一个网页数据展示,可直接采集</p>
</div>
<div class="card-footer">
<a href="#" class="card-link text-decoration-none">学习博客</a>
<a href="#" class="card-link text-decoration-none">案例详情</a>
</div>
</div>
</div>
<div class="col-sm-6 col-md-3 mt-2">
<div class="card text-center border-secondary rounded-5 shadow-sm" style="height:268px;">
<div class="card-header">
<h4 class="card-title">单页爬虫</h4>
</div>
<div class="card-body">
<p class="card-text">单独一个网页数据展示,可直接采集,单独一个网页数据展示,可直接采集</p>
</div>
<div class="card-footer">
<a href="#" class="card-link text-decoration-none">学习博客</a>
<a href="#" class="card-link text-decoration-none">案例详情</a>
</div>
</div>
</div>
<div class="col-sm-6 col-md-3 mt-2">
<div class="card text-center border-secondary rounded-5 shadow-sm" style="height:268px;">
<div class="card-header">
<h4 class="card-title">单页爬虫</h4>
</div>
<div class="card-body">
<p class="card-text">单独一个网页数据展示,可直接采集,单独一个网页数据展示,可直接采集</p>
</div>
<div class="card-footer">
<a href="#" class="card-link text-decoration-none">学习博客</a>
<a href="#" class="card-link text-decoration-none">案例详情</a>
</div>
</div>
</div>
</div>
</div>
<div class="container pt-5">
<h3>普通爬虫</h3>
<hr>
<div class="row align-items-stretch">
<div class="col-sm-6 col-md-3 mt-2">
<div class="card text-center border-secondary rounded-5 shadow-sm" style="height:268px;">
<div class="card-header">
<h4 class="card-title">单页爬虫</h4>
</div>
<div class="card-body">
<p class="card-text">单独一个网页数据展示,可直接采集,单独一个网页数据展示,可直接采集</p>
</div>
<div class="card-footer">
<a href="#" class="card-link">学习博客</a>
<a href="#" class="card-link">案例详情</a>
</div>
</div>
</div>
<div class="col-sm-6 col-md-3 mt-2">
<div class="card text-center border-secondary rounded-5 shadow-sm" style="height:268px;">
<div class="card-header">
<h4 class="card-title">单页爬虫</h4>
</div>
<div class="card-body">
<p class="card-text">单独一个网页数据展示,可直接采集,单独一个网页数据展示,可直接采集</p>
</div>
<div class="card-footer">
<a href="#" class="card-link">学习博客</a>
<a href="#" class="card-link">案例详情</a>
</div>
</div>
</div>
<div class="col-sm-6 col-md-3 mt-2">
<div class="card text-center border-secondary rounded-5 shadow-sm" style="height:268px;">
<div class="card-header">
<h4 class="card-title">单页爬虫</h4>
</div>
<div class="card-body">
<p class="card-text">单独一个网页数据展示,可直接采集,单独一个网页数据展示,可直接采集</p>
</div>
<div class="card-footer">
<a href="#" class="card-link">学习博客</a>
<a href="#" class="card-link">案例详情</a>
</div>
</div>
</div>
<div class="col-sm-6 col-md-3 mt-2">
<div class="card text-center border-secondary rounded-5 shadow-sm" style="height:268px;">
<div class="card-header">
<h4 class="card-title">单页爬虫</h4>
</div>
<div class="card-body">
<p class="card-text">单独一个网页数据展示,可直接采集,单独一个网页数据展示,可直接采集</p>
</div>
<div class="card-footer">
<a href="#" class="card-link">学习博客</a>
<a href="#" class="card-link">案例详情</a>
</div>
</div>
</div>
</div>
<div class="row align-items-stretch">
<div class="col-sm-6 col-md-3 mt-2">
<div class="card text-center border-secondary rounded-5 shadow-sm" style="height:268px;">
<div class="card-header">
<h4 class="card-title">单页爬虫</h4>
</div>
<div class="card-body">
<p class="card-text">单独一个网页数据展示,可直接采集,单独一个网页数据展示,可直接采集</p>
</div>
<div class="card-footer">
<a href="#" class="card-link">学习博客</a>
<a href="#" class="card-link">案例详情</a>
</div>
</div>
</div>
<div class="col-sm-6 col-md-3 mt-2">
<div class="card text-center border-secondary rounded-5 shadow-sm" style="height:268px;">
<div class="card-header">
<h4 class="card-title">单页爬虫</h4>
</div>
<div class="card-body">
<p class="card-text">单独一个网页数据展示,可直接采集,单独一个网页数据展示,可直接采集</p>
</div>
<div class="card-footer">
<a href="#" class="card-link">学习博客</a>
<a href="#" class="card-link">案例详情</a>
</div>
</div>
</div>
<div class="col-sm-6 col-md-3 mt-2">
<div class="card text-center border-secondary rounded-5 shadow-sm" style="height:268px;">
<div class="card-header">
<h4 class="card-title">单页爬虫</h4>
</div>
<div class="card-body">
<p class="card-text">单独一个网页数据展示,可直接采集,单独一个网页数据展示,可直接采集</p>
</div>
<div class="card-footer">
<a href="#" class="card-link">学习博客</a>
<a href="#" class="card-link">案例详情</a>
</div>
</div>
</div>
</div>
</div>
<div class="container-fluid text-center text-muted ">
<hr>
<p>爬虫训练场 Copyright © 梦想橡皮擦</p>
</div>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.2.3/dist/js/bootstrap.bundle.min.js"></script>
</body>
</html>
\ No newline at end of file
from app import app
# app.jinja_env.auto_reload = True
app.config['TEMPLATES_AUTO_RELOAD'] = True
if __name__ == '__main__':
app.run(host='0.0.0.0', port=8888)
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册