from selenium import webdriver
profile=webdriver.FirefoxOptions()
profile.add_argument('-headless') #设置无头模式
browser=webdriver.Firefox(options=profile)
user='用户名'
url=f'https://github.com/{user}?tab=repositories'
isPageTurning=False # 是否翻页
# 大循环,爬取某用户的所有repo
while True:
# 对于每个页面
browser.get(
爬取某github用户所有repo
最新推荐文章于 2024-04-08 10:58:04 发布