这题还是用BeautifulSoup,用到最常用的find_all和get,爬虫最常用的方法。
import urllib
from bs4 import BeautifulSoup
from urllib.request import urlretrieve
if __name__ == '__main__':
with open('csdn.html', 'r', encoding = 'utf-8'<
这题还是用BeautifulSoup,用到最常用的find_all和get,爬虫最常用的方法。
import urllib
from bs4 import BeautifulSoup
from urllib.request import urlretrieve
if __name__ == '__main__':
with open('csdn.html', 'r', encoding = 'utf-8'<