Python’s first crawler, crawling 147 novels

Time:2021-11-27

I just learned Python recently, so I made a python crawler and crawled 147 novels.

You can visit my blog:My blog

Just learning python, what are the shortcomings, boss, please point outPython's first crawler, crawling 147 novels

Analyze 147 web page structure

You can use GoogleF12Open the console

The chapter list was found by<dd></dd>package

Python's first crawler, crawling 147 novels

Chapter titles are provided by<div class="bookname"></div>LowerH1Label package

The contents of this chapter are provided by<div id="content"></div>LowerPLabel package

Python's first crawler, crawling 147 novels

Don’t talk too much, just code

#Novels from the 147 novel website

This work adoptsCC agreement, reprint must indicate the author and the link to this article