python爬取四大名著小说,涉及知识点:BS4和requests,文件保存,函数封装,

发布时间:2024年01月13日

页面源代码:


<!DOCTYPE html>
<html lang="zh">
<head>
	<script type="text/javascript" src="https://img.shicimingju.com/newpage/js/scmj.js"></script>
    <script src="https://img.shicimingju.com/newpage/js/all.js"></script>
    <meta charset="UTF-8">
    <title>《四大名著》在线阅读_诗词名句网</title>
    <meta name="viewport" content="width=device-width,user-scalable=no" />
    <meta name="description" content="" />
    <link rel="stylesheet" href="https://img.shicimingju.com/public/css/www_v3.css">
    <link rel="stylesheet" href="https://img.shicimingju.com/public/css/font_576092_m2icqcebp7evzpvi.css">
    <script src="https://img.shicimingju.com/public/js/device.js"></script>
    <script src="https://img.shicimingju.com/public/js/jq.js"></script>
    <script src="https://img.shicimingju.com/public/js/www_v3.js"></script>
</head>
<body>
<div id="top_bar">
    <div id="top_bar_main">
        <div id="top_left">
            <a href="/"><img src="https://img.shicimingju.com/public/image/logo.png" id="logo"/></a>
            <div id="top_left_menu">
                <ul>
                    <li><a href="/">首页</a></li>
                    <li><a href="/shicimark">分类</a></li>
                    <li><a href="/category/all">作者</a></li>
                    <li><a href="/paiming">排行榜</a></li>
                    <li><a href="/cate?cate_id=4">课本古诗</a></li>
                    <li><a href="/cipai/index.html">词牌名</a></li>
                    <li><a href="/hecheng/index.html">合称</a></li>
                    <li><a href="/book/">古籍</a></li>
                </ul>
     
文章来源:https://blog.csdn.net/jolinoy/article/details/135566969
本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。