Skip to content

Instantly share code, notes, and snippets.

View chenyucheng97's full-sized avatar
😀

Roy chenyucheng97

😀
View GitHub Profile
@vimerzhao
vimerzhao / mzitu_spider.py
Last active May 26, 2021 23:30
一个妹子图(http://www.mzitu.com )的爬虫程序,简单且low B,但对初步认识爬虫很有帮助。。。。
#!/usr/bin/env python3
import requests
from bs4 import BeautifulSoup
import os
# 爬取目标
url = 'http://www.mzitu.com/page/'
parser = 'html.parser'
cur_path = os.getcwd() + '/'