12 2020 档案

摘要:爬取地址: http://www.zuihaodaxue.com/zuihaodaxuepaiming2018.html‪‬‪‬‪‬‪‬‪‬‮‬‫‬‪‬‪‬‪‬‪‬‪‬‪‬‮‬‭‬‫‬‪‬‪‬‪‬‪‬‪‬‮‬‫‬‭‬‪‬‪‬‪‬‪‬‪‬‮‬‫‬‭‬‪‬‪‬‪‬‪‬‪‬‮‬‪‬‫‬‪‬‪‬‪‬‪‬‪‬ 阅读全文
posted @ 2020-12-14 14:57 英魂 阅读(165) 评论(0) 推荐(0)
摘要:这是一个简单的html页面,请保持为字符串,完成后面的计算要求。 from bs4 import BeautifulSoup import re html = ''' <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>菜鸟教程(r 阅读全文
posted @ 2020-12-14 14:53 英魂 阅读(381) 评论(0) 推荐(0)
摘要:请用requests库的get()函数访问如下一个网站20次,打印返回状态,text()内容,计算text()属性和content属性所返回网页内容的长度。 import requests def gethtml(): url = "https://www.sogou.com/" try: r=re 阅读全文
posted @ 2020-12-14 14:14 英魂 阅读(151) 评论(0) 推荐(0)