Skip to content

Instantly share code, notes, and snippets.

View vimerzhao's full-sized avatar
😁
I may be slow to respond.

赵裕 vimerzhao

😁
I may be slow to respond.
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() + '/'
@vimerzhao
vimerzhao / sniffer.c
Created April 19, 2017 10:41
capture ipv6&ipv4 packet
/*
ip_sniffer.c: capture packet(IPv4/IPv6)
Copyright © 2017 Yu Zhao <dutzhaoyu@gmail.com>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,