摘要:
1 from bs4 import BeautifulSoup 2 import re 3 soup=BeautifulSoup('''<!DOCTYPE html> 4 <html> 5 <head> 6 <meta charset="utf-8"> 7 <title>菜鸟教程(runoob.co 阅读全文
posted @ 2020-12-14 19:15
umalu
阅读(73)
评论(0)
推荐(0)
摘要:
1 import requests 2 url="https://hao.360.com/" 3 def gethtml(url): 4 try: 5 r=requests.get(url) 6 r.raise_for_status() 7 r.encoding="utf-8" 8 print("t 阅读全文
posted @ 2020-12-14 19:11
umalu
阅读(73)
评论(0)
推荐(0)
浙公网安备 33010602011771号