
python基础
csdn-JAVA-LIFE
这个作者很懒,什么都没留下…
展开
-
python中request.urlopen()和requests.get()方法的区别
爬虫里面,我们不可避免的要用urllib中的urlopen()和requests.get()方法去请求或获取一个网页的内容,这里面的区别在于urlopen打开URL网址,url参数可以是一个字符串url或者是一个Request对象,返回的是http.client.HTTPResponse对象.http.client.HTTPResponse对象大概包括read()、readinto()、gethe...转载 2019-04-22 14:57:03 · 7443 阅读 · 3 评论 -
BeautifulSoup 使用select方法详解
html = """<html><head><title>The Dormouse's story</title></head> <body> <p class="title" name="dromouse"><b>The Dormouse's story</b></p>...原创 2019-04-22 17:15:25 · 1305 阅读 · 0 评论