npmjs.com 的建议 API 启用了 Cloudflare 验证码。
1 分•作者: sroussey•大约 2 个月前
是的,这意味着他们的搜索框坏掉了。如果你在搜索时没有看到任何建议,你必须点击按钮来加载一个带有搜索结果的新页面,这个页面也有一个验证码,但它是一个 HTML 页面,所以你可以点击它。之后,建议 API 将停止返回 HTML,并开始返回 JSON 格式的建议。
查看原文
Yes, this means their search box is broken. If you see no suggestions when searching, you must click the button to load a new page with search results, which also has a captcha, but it is a html page so you can click it. After that, the suggestions api will stop returning html and start returning json for suggestions.