Hacker News new | ask | show | jobs
by codingdave 288 days ago
The HN API is not efficient - it says so itself in its readme. Which means neither is this. Making 1000+ HTTP requests to dupe check feels kind of insane when all you are doing is URL comparisons.

Why not instead make a single call to: https://news.ycombinator.com/from?site=whateverdomain.com, and parse that single result?

1 comments

Thanks so much, I've just refactored to do exactly this, based on your comment: https://github.com/wbnns/submit-to-hacker-news/commit/1afd66...