python爬虫3---BeautifulSoup实战
项目目标我们要去爬取热门菜谱清单,内含:菜名、原材料、详细烹饪流程的URL。import requests# 引用requests库from bs4 import BeautifulSoup# 引用BeautifulSoup库res_foods = requests.get('http://www.xiachufang.com/explore/')# 获取数据bs_foods =...