import requests
import json
import sqlite3
from bs4 import BeautifulSoup
class Csdn(object):
def __init__(self):
self.url = 'https://blog.csdn.net/'
self.headers = {'User-Agent': 'Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:61.0) Gecko/20100101 Firefox/61.0',
'Accept': 'application/json, text/javascript, */*; q=0.01',
'Accept-Encoding': 'gzip, deflate, br',
'Connection': 'keep-alive',
'Cookie': 'uuid_tt_dd=1779603933777551885_20180707; ADHOC_MEMBERSHIP_CLIENT_ID1.0=eb6438ac-acb6-855e-a954-7d2947b37c77; Hm_lvt_6bcd52f51e9b3dce32bec4a3997715ac=1533643400,1534149170,1534319755,1534325260; smidV2=201807070945365a09d53d9af4a9397bf4aabc3f67709a00555077b56c64c60; CloudGuest=vN6VafNUiX5vgmQtDW4q8JSJ6qbI2duaoVdN/LKclpX
博客推送文章爬取
最新推荐文章于 2023-05-28 16:53:24 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)