TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Ask HN: How to you manage your favorite HN submissions?

16 点作者 amzpix将近 5 年前
I have close to 900 submissions marked as favorite on HN. I'm trying to find all SQL related submissions from this list. Is there a quick way to search without scanning through 30 pages?

5 条评论

gabrielsroka将近 5 年前
I wrote some tools to export your HN favorites to CSV or HTML in both JavaScript and Python.<p>Check out <a href="https:&#x2F;&#x2F;gabrielsroka.github.io&#x2F;getHNFavorites.js" rel="nofollow">https:&#x2F;&#x2F;gabrielsroka.github.io&#x2F;getHNFavorites.js</a> or to view the source code, see JS: <a href="https:&#x2F;&#x2F;github.com&#x2F;gabrielsroka&#x2F;gabrielsroka.github.io&#x2F;blob&#x2F;master&#x2F;getHNFavorites.js" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;gabrielsroka&#x2F;gabrielsroka.github.io&#x2F;blob&#x2F;...</a> or Python: <a href="https:&#x2F;&#x2F;github.com&#x2F;gabrielsroka&#x2F;gabrielsroka.github.io&#x2F;blob&#x2F;master&#x2F;getHNFavorites.py" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;gabrielsroka&#x2F;gabrielsroka.github.io&#x2F;blob&#x2F;...</a><p>Previous discussion, other tools and more info:<p><a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=22788236" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=22788236</a><p>Maybe I should add a SQL interface ;)<p><pre><code> select * from favorites where username = &#x27;amzpix&#x27; and title like &#x27;%SQL%&#x27;;</code></pre>
评论 #23840512 未加载
评论 #23870236 未加载
blackbrokkoli将近 5 年前
Since HN is such a beautiful old school websites, the pages of your submissions are denoted in the URL like <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;favorites?id=YOURNAME&amp;p=PAGENUMBER" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;favorites?id=YOURNAME&amp;p=PAGENUM...</a>.<p>So you could just loop said page number in your favorite language, access the generated webpage and get the raw HTML. If you get all lines of class &quot;storylink&quot; and &quot;title&quot;, you will have all the post titles and where they link. Save that into any format as simple as Excel and you have a nice searchable overview.<p>Always rate limit yourself sensibly when web crawling, and have fun!
AlexanderNull将近 5 年前
I set up a job posting sentiment analysis ML app on the Who&#x27;s Hiring post recently and use a the public firebase REST API: <a href="https:&#x2F;&#x2F;github.com&#x2F;HackerNews&#x2F;API" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;HackerNews&#x2F;API</a> . It mostly works for my usecase but its search capabilities are severely lacking over REST so might not be the best in your case. I never got around to trying a firebase client so I have no clue if it interacts with a different interface, might be worth taking a quick look at.
dzonga将近 5 年前
I have a service, on the way to do so. leave your email, and will send you mail when ready. thanks
112将近 5 年前
ripgrep + fzf = love