摘要: 1、爬取豆瓣Top250电影信息以文本形式保存 数据:豆瓣电影 2、代码 import requests from bs4 import BeautifulSoup def get_movie(): headers = { 'user-agent': 'Mozilla/5.0 (Windows NT 阅读全文
posted @ 2020-08-09 12:59 MoooJL 阅读(139) 评论(0) 推荐(0) 编辑
摘要: 1、爬取QQ音乐榜单数据并存入数据库(MySQL) 2、代码 import requests import json from bs4 import BeautifulSoup import pymysql def get_html(): url='https://u.y.qq.com/cgi-bi 阅读全文
posted @ 2020-08-09 12:56 MoooJL 阅读(1047) 评论(0) 推荐(0) 编辑