Skip to content

爬取 Leetcode 每日一题 | Leetcode daily coding challenge question

License

Notifications You must be signed in to change notification settings

namolite/pinch-challenge

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 

Repository files navigation

pinch-challenge

简体中文 | 没有啦~


爬爬爬,咱最会爬了… …


Intro

今天咱来到了算法刷题网站 Leetcode,打算恶补一番算法和数据结构。用过的人都知道,Leetcode 每天都会从题库中抽取一道题作为推荐。但是每次要进网站刷题很麻烦(才不是咱没钱充 Premium!),咱计划编写一个爬虫脚本帮咱下载 “每日一题”,在无法随身携带电脑的场合会更加方便。

获取并输出标题、难度、准确率、标签、URL、内容等信息。我知道会获取多余的信息,马上就咕好。

萌新第一次写爬虫,质量没有保障。运行应该没有问题。


依赖

本项目使用了开源依赖库 urllib3


食用方法

安装 python,把 Leetcode_daily.py 放到想要的地方,然后命令它动起来!

md_file() 的第一个参数是题目保存的文件夹(默认为 problems,可以指定为空)


待完善功能 🕊

能查询题目解答及按 ID 检索题目。

输出图片的在线服务。

About

爬取 Leetcode 每日一题 | Leetcode daily coding challenge question

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages