PY4E
ChaChi0327
这个作者很懒,什么都没留下…
展开
-
Extracting Data from XML
xml文本格式<commentinfo><note>This file contains the actual data for your assignment - good luck!</note><comments><comment><name>Shaye</name><count>98</count></comment><comment><name原创 2020-08-05 15:01:08 · 137 阅读 · 0 评论 -
Following Links in HTML Using BeautifulSoup
“”"Created on Tue Aug 4 10:47:12 2020@author: Judy“”"import urllib.request, urllib.parse, urllib.errorfrom bs4 import BeautifulSoupimport sslctx = ssl.create_default_context()ctx.check_hostname = Falsectx.verify_mode = ssl.CERT_NONEurl = inpu原创 2020-08-04 17:45:52 · 254 阅读 · 0 评论 -
[PY4E] Scraping HTML Data with BeautifulSoup
from urllib.request import urlopenfrom bs4 import BeautifulSoupimport ssl# Ignore SSL certificate errorsctx = ssl.create_default_context()ctx.check_hostname = Falsectx.verify_mode = ssl.CERT_NONEurl = 'http://py4e-data.dr-chuck.net/comments_745662原创 2020-08-04 10:41:29 · 288 阅读 · 0 评论