Python3之爬取維基百科國家代碼

由於手上的項目要校驗輸入的國家代碼,直接就在維基百科爬了下,入門級爬蟲: import requests from bs4 import BeautifulSoup as bs html_doc = requests.get('https://zh.wikipedia.org/wiki/ISO_3166-1').text # print(html_doc) soup = bs(html_doc,
相關文章
相關標籤/搜索