V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
JamesHopbourn
V2EX  ›  macOS

Leetcode Alfred 题目查询插件

  •  
  •   JamesHopbourn · 190 天前 · 359 次点击
    这是一个创建于 190 天前的主题,其中的信息可能已经有所发展或是发生改变。

    Leetcode 题目搜素 Alfred Workflow

    成品下载:JamesHopbourn/leetcode-alfred-workflow
    参考文章:Alfred Workflow 进阶指南:以少数派标签搜索为例

    使用方法

    lc 题目信息

    搜索题目,并在 Leetcode 打开 例如:

    • lc 两数之和(标题)
    • lc 123 (题号)

    sxl 题目信息

    搜素题目,配合谷歌 site 高级搜索,在代码随想录查找题解文章 例如:

    • sxl 反转链表
    • sxl 买卖股票

    制作思路

    1 爬虫抓取所有题目

    python test/leetcodeSpider.py > leetcode.json
    

    2 清洗数据保留必要字段

    python test/processJSON.py > data.json
    

    3 Alfred 直接读取 data.json 进行匹配

    目前尚无回复
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   2219 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 04:56 · PVG 12:56 · LAX 21:56 · JFK 00:56
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.