Skip to content

Instantly share code, notes, and snippets.

View Galvin-wjw's full-sized avatar
🎯
Focusing

Galvin Galvin-wjw

🎯
Focusing
View GitHub Profile
@zxhfighter
zxhfighter / fork-and-push.md
Last active May 31, 2024 03:17
如何给开源项目贡献代码

如何给开源项目贡献代码

分两种情况:

  • 代码仓库管理者给你添加该仓库的写入权限,这样的话可以直接push
  • 如果不能直接push(大多数情况),采用经典的fork & pull request来提交代码,下面讲述这种情况

fork & pull request

例如有个仓库https://github.com/ecomfe/esui.git,其采用了经典的分支开发模型,稳定后的代码提交到master分支,其余特性则在dev分支上进行开发,待成熟后合并回master分支。

@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() + '/'