# spider **Repository Path**: zhou-bohan/spider ## Basic Information - **Project Name**: spider - **Description**: python爬虫学习 - **Primary Language**: Python - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2022-03-23 - **Last Updated**: 2022-06-07 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README 爬虫学习代码,待更新 request简单上手示例: ```python import requests import re import os dir='./jpg' url = 'https://www.shejidaren.com/dribbble-beautiful-ui-design-last-half-of-2012.html' # 1.确定地址,发送请求 response = requests.get(url) # 2.转换数据类型 # 3.数据解析 html = response.text # 可读网页源码 content =response.content # 二进制网页源码 title = re.findall('(.*?)', html,flags=re.DOTALL) results = list(set(re.findall('