python爬虫学习-使用bs4解析
from fake_useragent import UserAgentfrom bs4 import BeautifulSoupif __name__ == "__main__": url = 'http://www.maicainan.com/wap/offer/show/id/5139.html' ua = UserAgent(use_cache_server=False) headers = { 'user-agent': ua.ran