
Python实战笔记
Little_Blue_Eye
这个作者很懒,什么都没留下…
展开
-
Python实战1_2:爬取商品信息
需要爬取的信息代码from bs4 import BeautifulSoupimport stringwith open('C:/PythonPractice/Homework/Week1/1_2/1_2_homework/index.html','r') as web: soup = BeautifulSoup(web,"lxml") pics = soup.select('bod原创 2016-06-27 18:44:59 · 1655 阅读 · 0 评论 -
Python实战1_1:做一个自己的网页
参加了Python实战课程,此为第一节课的练习总结成果HTML代码<!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <title>The Blah</title> <link rel="stylesheet" type="text/css" href="homework.css"></head><原创 2016-06-22 14:01:27 · 45721 阅读 · 1 评论 -
Python实战1_3:爬取租房信息
需要爬取的资料网址: http://bj.xiaozhu.com/ 爬取信息: 爬取网页上300个房源信息,包括标题,地址,日租金,第一张房源图片链接,房东图片链接,房东性别,房东名字 代码from bs4 import BeautifulSoupimport requests# 判断性别def get_sex(sex_icon): if sex_icon == ['member_i原创 2016-06-29 12:45:31 · 3299 阅读 · 1 评论