获取自己的所有博客地址
一、步骤
1. 先获取首页看到的部分
2. 正则截取每月发表的博客数,总和即是所有的博客数。
3. 分页请求获取每一页的博客
4. 正则截取获得每篇博客的地址
二、代码
import re
import math
import urllib.request
url = 'https://blog.csdn.net/qq_40985985'
# url = 'https://blog.csdn.net/qq_40985985'
# url = 'https://blog.csdn.net/qq_40985985/article/list/'
# https://blog.csdn.net/qq_40985985/article/details/
html = urllib.request.urlopen