摘要:
1 <!DOCTYPE html> 2 <html> 3 <head> 4 <meta charset="utf-8"> 5 <title>菜鸟教程(runoob.com)</title> 6 </head> 7 <body> 8 <h1>欢迎您的加入03</h1> 9 <p>有你想不到的意外哦!< 阅读全文
posted @ 2020-05-25 20:31
鯮
阅读(126)
评论(0)
推荐(0)
摘要:
import requests from bs4 import BeautifulSoup import bs4 info=[] url ="http://www.zuihaodaxue.com/zuihaodaxuepaiming2018.html" try: r=requests.get(url 阅读全文
posted @ 2020-05-25 20:29
鯮
阅读(121)
评论(0)
推荐(0)
摘要:
import requests def getHTMLText(url): try: r=requests.get(url,timeout=30) r.raise_for_status() r.encoding='utf-8' return r.text except: return "" url= 阅读全文
posted @ 2020-05-25 20:12
鯮
阅读(112)
评论(0)
推荐(0)

浙公网安备 33010602011771号