![](https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Web crawlers
文章平均质量分 52
jackonly1
赌书消得泼茶香。当时只道是寻常。
展开
-
python爬取豆瓣top250电影榜
前言 beautiful soup库的一些应用,作为笔记 代码 爬取豆瓣top250电影榜单的一些信息, 链接:https://movie.douban.com/top250 import bs4 import requests def find_pages(url): response = open_url(url) soup = bs4.BeautifulSoup(response.text,'html.parser') pages =soup.find('span', c原创 2021-01-18 20:46:58 · 399 阅读 · 1 评论 -
python 爬取有道词典的翻译 *渔夫版
前言 在小甲鱼课程里学习到的python爬取有道词典的翻译,发现一些东西不是很适用于现在,网上给出的答案分为两种 一、去掉 “_o” import urllib.request import urllib.parse import json content = input("请输入需要翻译的内容:") url = "http://fanyi.youdao.com/translate?smartresult=dict&smartresult=rule" #url = "http://fanyi原创 2021-01-11 21:14:59 · 468 阅读 · 1 评论