<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Onduty Labs]]></title><description><![CDATA[Onduty Labs]]></description><link>https://ondutylabs.hashnode.dev</link><generator>RSS for Node</generator><lastBuildDate>Fri, 04 Dec 2026 23:43:11 GMT</lastBuildDate><atom:link href="https://ondutylabs.hashnode.dev/rss.xml" rel="self" type="application/rss+xml"/><language><![CDATA[en]]></language><ttl>60</ttl><item><title><![CDATA[28% of recent Show HN launches have no link-preview image]]></title><description><![CDATA[I checked 292 Show HN sites: 83 had no og:image tag in the HTML their server sends. Here's what a launch audit found and how to check your own page.]]></description><link>https://ondutylabs.hashnode.dev/28-of-recent-show-hn-launches-have-no-link-preview-image</link><guid isPermaLink="true">https://ondutylabs.hashnode.dev/28-of-recent-show-hn-launches-have-no-link-preview-image</guid><category><![CDATA[webdev]]></category><category><![CDATA[SEO]]></category><category><![CDATA[showdev]]></category><category><![CDATA[startup]]></category><category><![CDATA[open graph]]></category><dc:creator><![CDATA[Onduty Labs]]></dc:creator><pubDate>Thu, 03 Dec 2026 15:41:26 GMT</pubDate><content:encoded><![CDATA[<p>When you launch something and share the link on social media or in a community, the first thing people see usually isn't your website. It's the link preview card.</p>
<p>So how well do developers who are actually launching things handle these basics?</p>
<p>I was curious, so I collected recent Show HN websites and checked them myself.</p>
<p>## What I measured</p>
<p>I checked the 300 most recent website links posted to Show HN between November 27 and December 1, 2026.</p>
<p>I excluded links to platforms like GitHub, and I measured each domain only once.</p>
<p>| Item | Count |</p>
<p>|---|---|</p>
<p>| Collected | 300 |</p>
<p>| Results returned | 299 |</p>
<p>| Audited successfully | 295 |</p>
<p>| Failed | 4 |</p>
<p>| Raw HTML checked | 292 |</p>
<p>For the 295 audited sites, I also sent one extra GET request to see the raw HTML the server returns. I was able to check 292 of them.</p>
<p>Everything was measured once, from a single PC, on both desktop and mobile. Page speed and performance were not part of this run.</p>
<p>## Link preview tags</p>
<p>The first thing I looked at was the Open Graph meta tags used for link preview cards.</p>
<p>| Tag (292 sites) | Missing |</p>
<p>|---|---|</p>
<p>| `og:image` | 28.4% (83) |</p>
<p>| `og:title` | 22.3% (65) |</p>
<p>More than 1 in 4 sites had no `og:image`.</p>
<p>Maybe they used `twitter:image` instead?</p>
<p>I checked. Of the sites without `og:image`, zero used `twitter:image` as a fallback.</p>
<p>So 83 sites had neither of the two common preview image tags.</p>
<p>Some platforms may pull an image from the page on their own, but there's no guarantee it will be the one you wanted.</p>
<p>The good news is that the fix doesn't need anything complicated or an extra library. Add tags like these to the `&lt;head&gt;` of the HTML your server returns:</p>
<p>```html</p>
<p>&lt;meta property="og:title" content="Your product name" /&gt;</p>
<p>&lt;meta property="og:image" content="<a href="https://example.com/og.png">https://example.com/og.png</a>" /&gt;</p>
<p>```</p>
<p>Building features takes a lot of time. Improving the first impression of your link takes very little.</p>
<p>## What about tags added by JavaScript?</p>
<p>One question came up here.</p>
<p>If a site uses a framework like React or Vue, could the meta tags be missing from the initial HTML and only get added after JavaScript runs?</p>
<p>To check, I compared the raw HTML from the server with the page rendered in a browser.</p>
<p>In this sample, zero sites added `og:image` only after JavaScript ran.</p>
<p>Still, many link preview crawlers don't run JavaScript the way a browser does, so it's best to put meta tags in the initial HTML.</p>
<p>Checking your own site is easy. Use "View page source" instead of the Elements tab in DevTools, or run this in a terminal:</p>
<p>```bash</p>
<p>curl -Ls <a href="https://example.com">https://example.com</a> | grep -i 'og:image'</p>
<p>```</p>
<p>What you see in the browser and what your server actually returns can be different.</p>
<p>## The wider audit</p>
<p>Beyond link previews, I also checked basic SEO settings, page structure, mobile layout, and JavaScript errors.</p>
<p>Here are the 295 audited sites grouped by the most severe issue found on each one:</p>
<p>| Highest severity | Share |</p>
<p>|---|---|</p>
<p>| No issues | 22.7% |</p>
<p>| Critical | 1.7% |</p>
<p>| Warning | 50.8% |</p>
<p>| Info | 24.7% |</p>
<p>22.7% of sites had no issues under these rules.</p>
<p>That means about 77% had at least one thing worth checking. But for 24.7% of all sites, everything found was info-level, meaning optional improvements like llms.txt or a canonical link. Sites with at least one warning or critical issue: 52.5%.</p>
<p>The most common issues:</p>
<p>| Issue | Share | Severity |</p>
<p>|---|---|---|</p>
<p>| No sitemap.xml | 32.9% | Warning |</p>
<p>| No canonical link | 29.2% | Info |</p>
<p>| No robots.txt | 21.7% | Info |</p>
<p>| No meta description | 9.2% | Warning |</p>
<p>| No `&lt;h1&gt;` | 8.8% | Warning |</p>
<p>Some problems also showed up in the real browser, not just in SEO:</p>
<p>- Content wider than the screen on mobile: 5.1%</p>
<p>- JavaScript errors in the console: 3.4%</p>
<p>- Images without `alt` text: 3.4%</p>
<p>These are easy to miss while you're focused on building the core product. Mobile overflow in particular is hard to notice if you mostly develop and test on desktop.</p>
<p>For reference, 61.7% of sites had no llms.txt. But llms.txt isn't a required web standard or an SEO requirement, so it's better to read it separately from the main issues.</p>
<p>Also, missing a sitemap or a canonical tag doesn't always hurt search visibility. Whether you need them depends on the size and purpose of your site.</p>
<p>## The 5 critical issues</p>
<p>Across all 295 sites, these were the issues that ended up as critical:</p>
<p>| Issue | Count |</p>
<p>|---|---|</p>
<p>| Broken links | 2 |</p>
<p>| Missing viewport meta tag | 2 |</p>
<p>| Site served over HTTP | 1 |</p>
<p>| Total | 5 |</p>
<p>Broken links can stop users from reaching a page or feature.</p>
<p>Without a viewport meta tag, mobile browsers may not show your responsive layout as intended.</p>
<p>A site without HTTPS can hurt security and user trust.</p>
<p>That said, "critical" is a severity level defined by this audit tool. It doesn't mean every site suffers the same real-world damage.</p>
<p>## Where the audit can be wrong</p>
<p>Not every problem an automated audit finds is a real problem.</p>
<p>In this run, too, my first set of rules was stricter than it should have been.</p>
<p>While reviewing the results, I removed or downgraded these 11 findings:</p>
<p>- Removed 3 failed requests to Cloudflare's bot-check service</p>
<p>- Downgraded 3 fetch requests that returned 404</p>
<p>- Downgraded 5 `noindex` settings on sub-pages</p>
<p>The Cloudflare requests failed in my capture environment. The sites themselves loaded fine, so these weren't problems with the sites.</p>
<p>Likewise, a `noindex` on a sub-page may be a deliberate choice to keep that page out of search engines.</p>
<p>After reviewing these cases and adjusting the rules, critical findings went from 13 to 5.</p>
<p>This also shows how automated audit results should be read.</p>
<p>The results aren't a final verdict on a website. They're closer to a list of things a developer should check.</p>
<p>Automation can cut the time it takes to find problems, but whether each finding is a real problem still depends on context.</p>
<p>## How I ran it</p>
<p>I used Website Launch Audit, a tool I built.</p>
<p>It's available as an Apify Actor, but for this post I ran the collection and audit on my own PC.</p>
<p>No AI is used in the audit. It checks HTML meta tags, HTTP responses, and the rendered page against fixed, predefined rules.</p>
<p>The goal isn't to judge the quality of a product. It's to automatically catch technical details that are easy to miss around launch.</p>
<p>If you want to try it yourself:</p>
<p>Try it: <a href="https://apify.com/ondutylabs/website-launch-audit">https://apify.com/ondutylabs/website-launch-audit</a></p>
<p>- Screenshots: from $1.50 per 1,000</p>
<p>- Website audit: $0.02 per page</p>
<p>*Disclosure: I built this Actor.*</p>
<p>## Limits</p>
<p>There are a few limits to keep in mind when reading these results.</p>
<p>- The sample is only a few days of websites posted to Show HN, so it can't be generalized to all websites or startups.</p>
<p>- I measured once and didn't test reproducibility with repeated runs.</p>
<p>- I didn't test how preview cards actually look on individual platforms like X, LinkedIn, Slack, or Discord.</p>
<p>- I didn't measure performance metrics such as load speed, Lighthouse scores, or Core Web Vitals.</p>
<p>So these results are less a statistic about the web and more a small snapshot of sites launched at one point in time.</p>
<p>## Final thoughts</p>
<p>The most striking result wasn't a complex technical problem. It was how many sites were missing `og:image`.</p>
<p>Of the 292 sites where I checked the raw HTML, 83 (about 28%) didn't provide either of the common link preview image tags.</p>
<p>Developers build countless features, fix bugs, and set up deployments before they launch.</p>
<p>But the moment someone first discovers the product might be a link preview card.</p>
<p>A good Open Graph image won't guarantee success. But it's clearly a cheap way to present what you've already built a little better.</p>
<p>If you're planning to launch something or post it to Show HN, it might be worth checking what first impression your site gives before you hit share.</p>
<p>Sometimes, the first impression of your website happens outside your website.</p>
]]></content:encoded></item><item><title><![CDATA[We checked 607 Hacker News links. Only a third of the "dead" ones were confirmed dead]]></title><description><![CDATA[We checked 607 links from HN's front page. A naive status-code check said 36% of 2016 links were dead. Only 11.7% were.]]></description><link>https://ondutylabs.hashnode.dev/we-checked-607-hacker-news-links-only-a-third-of-the-dead-ones-were-confirmed-dead</link><guid isPermaLink="true">https://ondutylabs.hashnode.dev/we-checked-607-hacker-news-links-only-a-third-of-the-dead-ones-were-confirmed-dead</guid><category><![CDATA[hackernews]]></category><category><![CDATA[webdev]]></category><category><![CDATA[SEO]]></category><category><![CDATA[Python]]></category><category><![CDATA[archive]]></category><dc:creator><![CDATA[Onduty Labs]]></dc:creator><pubDate>Sun, 29 Nov 2026 12:25:34 GMT</pubDate><content:encoded><![CDATA[<p>Can you still read the posts that made the Hacker News front page 10 years ago?</p>
<p>I got curious and checked. We're building a link checker, and I wanted to know how long links actually survive on the real internet.</p>
<p>But the interesting part turned out not to be how many links had died. It was figuring out which ones had actually died.</p>
<h2>We checked 607 links</h2>
<p>We collected posts from the Hacker News front page for the first week of November in 2016, 2021 and 2025, 30 posts a day for 7 days.</p>
<p>Keeping only external links left us with 607: 205 from 2016, 197 from 2021 and 205 from 2025. We checked them on November 29, 2026. While collecting the lists, we kept to the 30-second request interval in HN's robots.txt.</p>
<p>At first we checked them in the simplest way: if the HTTP status code is 200, the link is alive. Otherwise, it's dead.</p>
<p>That told us 36% of the 2016 links were dead.</p>
<p>So about a third of links disappear in 10 years, I thought.</p>
<p>But when we went back and checked them one by one, that wasn't what was happening.</p>
<h2>They weren't dead. We just couldn't get in.</h2>
<p>Sites like The New York Times and Bloomberg block access from scripts. They returned 403, but that doesn't mean the content was gone.</p>
<p>Even when we sent requests that looked like they came from a browser, Bloomberg still blocked us.</p>
<p>There were also certificate errors. It turned out the problem wasn't the sites but the environment on the PC running the check.</p>
<p>We separated these cases and counted again.</p>
<table>
<thead>
<tr>
<th>Year</th>
<th>Links checked</th>
<th>Confirmed dead</th>
<th>200 but dead</th>
<th>Bot-blocked (unknown)</th>
<th>Other unknown (timeouts, 5xx)</th>
</tr>
</thead>
<tbody><tr>
<td>2016</td>
<td>205</td>
<td>11.7%</td>
<td>0.5%</td>
<td>15.1%</td>
<td>5.4%</td>
</tr>
<tr>
<td>2021</td>
<td>197</td>
<td>10.7%</td>
<td>1.5%</td>
<td>10.2%</td>
<td>2.5%</td>
</tr>
<tr>
<td>2025</td>
<td>205</td>
<td>2.0%</td>
<td>0.5%</td>
<td>10.2%</td>
<td>0%</td>
</tr>
</tbody></table>
<p>For 2016, the first check said 36% were dead, but only 11.7% could actually be confirmed dead. That's about a third.</p>
<p>That doesn't mean the real rate is 3 times lower. The rest is unknown, not alive. So for 2016 the honest answer is a range: at least 12.2% (confirmed dead plus 200-but-dead), and up to about 33% if every link we couldn't check is also gone. A few more links redirect to a home or list page that we still counted as alive, so the low end is probably a bit higher.</p>
<p>What the naive check gets wrong isn't just the number. It can't tell confirmed dead from unknown.</p>
<h2>And some dead links return 200</h2>
<p>Personally, I found this side more interesting.</p>
<p>A 200 status code doesn't mean the original content is still there.</p>
<ul>
<li><a href="http://davidecoppola.com"><strong>davidecoppola.com</strong></a>: what used to be a personal blog now redirects to DropCatch, a domain auction service.</li>
<li><a href="http://rework.withgoogle.com"><strong>rework.withgoogle.com</strong></a>: the page title says 404, but the HTTP status code is 200.</li>
<li><a href="http://gamasutra.com"><strong>gamasutra.com</strong></a>: instead of the original post, you land on a list page on Game Developer.</li>
<li><a href="http://investor.fb.com"><strong>investor.fb.com</strong></a>: instead of the original content, you land on the home page of Meta's investor site.</li>
</ul>
<p>From the server's point of view, these are normal responses. For someone who clicks the original link, they're as good as dead.</p>
<p>So a naive link checker can be wrong in both directions. It can call a live link dead, and it can call a dead link alive.</p>
<p>HTTP 200 means the request succeeded. It doesn't mean the content you were looking for is there.</p>
<h2>Luckily, the internet has a better memory than we thought</h2>
<p>Out of 607 links, 49 were confirmed dead.</p>
<p>We wondered whether the Wayback Machine might still have them, so we checked.</p>
<p>All 49 had an archived copy.</p>
<p>The content is no longer at the original address, but at least the record of it survives.</p>
<h2>What we learned while building a link checker</h2>
<p>This experiment taught us at least three things to check when testing links.</p>
<ol>
<li><strong>Don't treat a 403 as a dead link.</strong> Being blocked and content being gone are different problems.</li>
<li><strong>Don't treat a 200 as a live link.</strong> Check the page title, the content and the final address after redirects.</li>
<li><strong>If a link is dead, check the Wayback Machine.</strong> The original may be gone, but an archived copy may still exist.</li>
</ol>
<h2>Limits of this experiment</h2>
<p>We only checked about 200 links per year, so it's hard to read much into differences of a few percent.</p>
<p>Sites that make the Hacker News front page are also likely to last longer than typical websites. These results don't represent the whole internet.</p>
<p>And we still don't know the real state of the links we couldn't reach because of bot blocking.</p>
<h2>So we built our link checker a bit differently</h2>
<p>We added the classification rules from this experiment to the link checker Actor we built.</p>
<p>Instead of just alive or dead, it sorts links into five states:</p>
<ul>
<li><code>alive</code>: the link works</li>
<li><code>soft_dead</code>: the server responds normally, but the original content is gone</li>
<li><code>bot_blocked</code>: we couldn't check it because the site blocks bots</li>
<li><code>dead</code>: confirmed dead</li>
<li><code>unknown</code>: hard to say for sure</li>
</ul>
<p>Cases like the last two examples above, where a link lands on a list page or a different site's home page, are still hard to catch with rules, so the checker may still mark them as <code>alive</code>.</p>
<p>It can also look up archived copies on the Wayback Machine.</p>
<p>This started because I wanted to know how long links survive on the internet. In the end, it made me think more about what it actually means for a link to be alive.</p>
<p>Checking whether a link is dead turned out to be less simple than I thought.</p>
<p>And I think marking what you don't know as unknown is an important job for a link checker too.</p>
<p>Actor: <a href="https://apify.com/ondutylabs/url-status-checker">Dead Link Checker on Apify</a></p>
<p>Dataset: all 607 links re-run through the Actor on November 29, 2026. The numbers may differ slightly from the study above.</p>
<ul>
<li><a href="https://api.apify.com/v2/datasets/L8S9sJtPlMYrDi9nA/items?clean=true&amp;fields=inputUrl,verdict,verdictReason,statusCode,finalUrl,redirectCount,waybackUrl&amp;format=html">View in browser</a></li>
<li><a href="https://api.apify.com/v2/datasets/L8S9sJtPlMYrDi9nA/items?clean=true&amp;fields=inputUrl,verdict,verdictReason,statusCode,finalUrl,redirectCount,waybackUrl&amp;format=csv">Download CSV</a></li>
</ul>
<h2>Update (2026-12-04)</h2>
<p>A reader suggested reporting the 2016 number as a range instead of a single figure. I added the full breakdown, including 11 links (5.4%) I couldn't classify that weren't in the original table, and now give a range of about 12% to 33%.</p>
<p>Disclosure: I wrote this post in Korean and translated it into English with an AI assistant. The check scripts were written with AI help, and the numbers come from our own runs.</p>
]]></content:encoded></item><item><title><![CDATA[There's no GitHub Trending API, so we tested 3 free alternatives]]></title><description><![CDATA[There's no official GitHub Trending API. We compared two Search API workarounds and OSS Insight with the real Trending page: 0 or 1 repos overlapped.]]></description><link>https://ondutylabs.hashnode.dev/there-s-no-github-trending-api-so-we-tested-3-free-alternatives</link><guid isPermaLink="true">https://ondutylabs.hashnode.dev/there-s-no-github-trending-api-so-we-tested-3-free-alternatives</guid><category><![CDATA[GitHub]]></category><category><![CDATA[Python]]></category><category><![CDATA[api]]></category><category><![CDATA[Open Source]]></category><category><![CDATA[webscraping ]]></category><dc:creator><![CDATA[Onduty Labs]]></dc:creator><pubDate>Sat, 28 Nov 2026 15:03:38 GMT</pubDate><content:encoded><![CDATA[<p>While building a tool that collects GitHub data, we got curious about one thing.</p>
<p>Can you get the list of repositories on the GitHub Trending page through an API?</p>
<p>GitHub offers a lot of its features through official APIs, so we assumed there would be a Trending API too. There isn't.</p>
<p>If you search for it, you'll find plenty of guides that build "Trending" on top of the GitHub Search API. At first we also thought this would get us something reasonably close to the real Trending page.</p>
<p>So we compared them directly.</p>
<p>The results were very different from what we expected.</p>
<h2>1. Three free approaches</h2>
<p>These are the three approaches we tested:</p>
<ul>
<li>Repositories created recently, sorted by total stars</li>
<li>Repositories with a recent push, sorted by total stars</li>
<li>The OSS Insight API, which ranks repositories based on GitHub event data</li>
</ul>
<p>The first two use GitHub's official Search API, so there's no web scraping involved. We expected the third one to be closer to Trending, because it measures popularity from events that happened during a given period.</p>
<h2>2. How they compare to the real GitHub Trending page</h2>
<p>The difference might only show up for certain languages or periods, so we split the comparison into three cases:</p>
<ul>
<li>Python / Weekly</li>
<li>All languages / Weekly</li>
<li>Python / Daily</li>
</ul>
<p>That's two Search API approaches times three cases, six comparisons in total.</p>
<p>In every comparison, only 0 or 1 repositories overlapped with the actual GitHub Trending list.</p>
<table>
<thead>
<tr>
<th>Case</th>
<th>Repos on the Trending page</th>
<th>Created recently, by stars</th>
<th>Pushed recently, by stars</th>
<th>OSS Insight</th>
</tr>
</thead>
<tbody><tr>
<td>Python / Weekly</td>
<td>15</td>
<td>0</td>
<td>0</td>
<td>no data</td>
</tr>
<tr>
<td>All languages / Weekly</td>
<td>15</td>
<td>0</td>
<td>0</td>
<td>no data</td>
</tr>
<tr>
<td>Python / Daily</td>
<td>23</td>
<td>0</td>
<td>1</td>
<td>no data</td>
</tr>
</tbody></table>
<p>Tested on November 28, 2026 at 14:38 UTC. Every request returned HTTP 200. We compared the top 25 results of each Search API query with every repository on the Trending page. "Recently" means the last 7 days for the weekly cases and the last day for the daily case. The full script is at the end of this post.</p>
<p>At first we thought something was wrong with how we collected the data.</p>
<p>The Python weekly Trending list in particular gave us only 15 repositories, so we opened the actual page and checked. The page had exactly 15 at that time.</p>
<p>No repositories were missing from our collection. We had simply been pulling two different lists from the start.</p>
<h2>3. GitHub Trending isn't a ranking of this week's stars either</h2>
<p>Looking through the actual Trending page, we noticed something more interesting.</p>
<p>In Python weekly Trending, the repository in 5th place got 162 stars this week.</p>
<p>The repository in 12th place got 12,164 stars in the same period.</p>
<p>The one with far more stars this week was ranked lower.</p>
<p>According to <a href="https://github.blog/news-insights/company-news/explore-what-is-trending-on-github/">GitHub's original post introducing Trending</a>, it looks at stars, forks, commits, follows and pageviews, and also at how recently those events happened. The exact formula has never been published.</p>
<p>Filtering the Search API for recently created repositories and sorting them by stars is a completely different calculation.</p>
<p>The same goes for sorting recently pushed repositories by stars. You're more likely to get repositories that were already popular and also got updated recently, rather than ones that just became popular.</p>
<p>In the end, the Search API alone can't give you the same result as GitHub Trending.</p>
<h2>4. What about event data?</h2>
<p>Then why not collect when stars were added and calculate the ranking yourself?</p>
<p>OSS Insight is a well-known service that takes this approach.</p>
<p>But when we tested it, the API call itself worked, yet no Trending data came back.</p>
<p>The response said the data had been unavailable since March 1, 2026, and that event collection had dropped to about 0.3% of the normal level.</p>
<p>Looking further, this isn't just an OSS Insight problem.</p>
<p>According to <a href="https://opensource.googleblog.com/2026/09/how-much-should-you-trust-your-oss-data.html">a September 2026 post on the Google Open Source Blog</a>, GH Archive may have been missing more than half of GitHub events since 2025, and in 2026 the capture rate for some event types may be as low as 20%.</p>
<p>Before you even get to the ranking algorithm, the raw data itself has become unreliable.</p>
<p>On top of that, OSS Insight has <a href="https://ossinsight.io/blog/ossinsight-is-shutting-down">announced</a> that it will shut down its live service and public API on December 4, 2026.</p>
<p>Before following an older "GitHub Trending API" tutorial as is, it's worth checking whether the data is actually still there.</p>
<h2>5. So which approach should you use?</h2>
<p>This test made us think that getting the GitHub Trending list and finding repositories that are getting attention lately are two different problems.</p>
<p><strong>If you need exactly the same list as GitHub Trending</strong></p>
<p>Using the Trending page itself as the data source is the most reliable way. But parsing HTML can stop working whenever the page structure changes.</p>
<p><strong>If you want to find popular projects that appeared recently</strong></p>
<p>Limiting the creation date in the Search API and sorting by stars is useful enough.</p>
<p><strong>If you want popular projects that are still being actively developed</strong></p>
<p>Filtering by recent push date and sorting by stars has the same problem as in section 3: it favors repositories that were already popular. A recent push only means at least one commit landed. A better approach is to use search only to collect candidates, then rank them by their own recent commit activity, such as the number of commits in the last 30 days, instead of total stars.</p>
<p>Each of these answers a different question, so pick the one that matches yours.</p>
<h2>6. Wrapping up</h2>
<p>We started out looking for a simple API to replace GitHub Trending.</p>
<p>After actually comparing them, we found that defining what data you want matters more than copying Trending as is.</p>
<p>That's also why we built an Actor that explores repositories with GitHub's official Search API. It doesn't copy GitHub Trending. It finds recently created popular repositories that match your filters.</p>
<p>If you need similar data, you can use it here: <a href="https://apify.com/ondutylabs/github-repo-scraper">GitHub Repository Scraper on Apify</a></p>
<h2>The test script</h2>
<p>Python standard library only, no token needed. It prints each list and the overlap counts. The OSS Insight part will return 410 Gone after December 4, 2026.</p>
<pre><code class="language-python">"""Compare GitHub trending pages with Search API (created / pushed) and OSS Insight trends.
Standard library only, no tokens. Usage: python run.py
"""
import urllib.request, urllib.error, urllib.parse, re, json, datetime

UA = {"User-Agent": "trending-compare/1.0", "Accept": "*/*"}


def get(url):
    req = urllib.request.Request(url, headers=UA)
    try:
        with urllib.request.urlopen(req, timeout=60) as r:
            return r.status, r.read().decode("utf-8", "replace")
    except urllib.error.HTTPError as e:
        return e.code, e.read().decode("utf-8", "replace")[:300]
    except Exception as e:
        return type(e).__name__, str(e)


def stamp():
    return datetime.datetime.now(datetime.timezone.utc).strftime("%Y-%m-%d %H:%M:%S UTC")


def trending(lang, since):
    path = f"/trending/{lang}" if lang else "/trending"
    url = f"https://github.com{path}?since={since}"
    t = stamp()
    s, html = get(url)
    repos = []
    if s == 200:
        for art in html.split("&lt;article")[1:]:
            m = re.search(r'&lt;h2[^&gt;]*&gt;.*?href="/([^"/]+/[^"/]+)"', art, re.S)
            if m:
                repos.append(m.group(1))
    return url, t, s, repos


def search(lang, field, days, n=25):
    d = (datetime.datetime.now(datetime.timezone.utc) - datetime.timedelta(days=days)).date().isoformat()
    q = f"{field}:&gt;{d}" + (f" language:{lang}" if lang else "")
    url = "https://api.github.com/search/repositories?" + urllib.parse.urlencode(
        {"q": q, "sort": "stars", "order": "desc", "per_page": n})
    t = stamp()
    s, body = get(url)
    repos = []
    if s == 200:
        repos = [i["full_name"] for i in json.loads(body)["items"]]
    return url, t, s, repos


def ossinsight(lang, period):
    qs = {"period": period, "language": lang or "All"}
    url = "https://api.ossinsight.io/v1/trends/repos/?" + urllib.parse.urlencode(qs)
    t = stamp()
    s, body = get(url)
    repos = []
    if s == 200:
        try:
            rows = json.loads(body)["data"]["rows"]
            repos = [r["repo_name"] for r in rows]
        except Exception as e:
            return url, t, f"200 but parse error {e}", repos
    else:
        body_short = body[:200]
        return url, t, f"{s} {body_short}", repos
    return url, t, s, repos


def low(xs):
    return {x.lower() for x in xs}


scenarios = [
    ("Python weekly", "python", "weekly", 7, "past_week"),
    ("All languages weekly", "", "weekly", 7, "past_week"),
    ("Python daily", "python", "daily", 1, "past_24_hours"),
]

for name, lang, since, days, period in scenarios:
    print("=" * 70)
    print(name)
    turl, tt, ts, trend = trending(lang, since)
    print(f"[trending] {tt} HTTP {ts} count={len(trend)}\n  {turl}\n  {trend}")
    sources = [
        ("a. Search created, stars", search(lang, "created", days)),
        ("b. Search pushed, stars", search(lang, "pushed", days)),
        ("c. OSS Insight trends", ossinsight(lang, period)),
    ]
    for label, (url, t, s, repos) in sources:
        ov = sorted(low(trend) &amp; low(repos))
        # also overlap when API list is cut to the same size as trending
        k = len(trend)
        ovk = sorted(low(trend) &amp; low(repos[:k]))
        print(f"[{label}] {t} HTTP {s} count={len(repos)}\n  {url}")
        print(f"  overlap with trending: {len(ov)} (top-{k} only: {len(ovk)}) {ov}")
        print(f"  top5: {repos[:5]}")
</code></pre>
<p>Disclosure: I built the Actor mentioned above. I wrote this post in Korean and translated it into English with an AI assistant. The test script was written with AI help, and the numbers come from our own run.</p>
<h2>Update (2026-12-04)</h2>
<p>A reader pointed out that my section 5 suggestion (recent push, sorted by stars) has the same bias I described in section 3. I've rewritten that part: collect candidates with search, then rank them by each repository's recent commit activity.</p>
<p>Following that suggestion, our Actor now has an <code>active</code> mode that does this. It scores the top-starred matching repositories by their number of recent commits. Commit counts are only a rough measure of activity: bot commits are included, and repositories that squash-merge pull requests show fewer commits.</p>
]]></content:encoded></item><item><title><![CDATA[Apple's App Store review RSS feed returns empty results: what I found (Nov 2026)]]></title><description><![CDATA[Apple's customer reviews RSS feed often returns HTTP 200 with no reviews and stops at page 1. What I saw, how to detect it, and a Python fallback.]]></description><link>https://ondutylabs.hashnode.dev/apple-s-app-store-review-rss-feed-returns-empty-results-what-i-found-nov-2026</link><guid isPermaLink="true">https://ondutylabs.hashnode.dev/apple-s-app-store-review-rss-feed-returns-empty-results-what-i-found-nov-2026</guid><category><![CDATA[iOS]]></category><category><![CDATA[Python]]></category><category><![CDATA[web scraping]]></category><category><![CDATA[Apple]]></category><category><![CDATA[api]]></category><dc:creator><![CDATA[Onduty Labs]]></dc:creator><pubDate>Sat, 28 Nov 2026 08:51:09 GMT</pubDate><content:encoded><![CDATA[<p>If you pull App Store reviews from Apple's public RSS feed and suddenly get <strong>HTTP 200 with zero reviews</strong>, don't assume the app has no reviews. In my tests the feed often came back empty, with different results for different request routes, and I can't say for sure why.</p>
<p>Below are my notes and a small Python script that works around it as far as it can.</p>
<h2>TL;DR</h2>
<ul>
<li>The feed still exists, but in late November 2026 it often answered <strong>200 OK with no reviews in it</strong>.</li>
<li>From a cloud server, direct requests were empty in my first test runs (a later run worked). A new datacenter IP helped sometimes. A residential IP in the same country as the storefront worked when I tried it. This does not prove that the IP is the cause.</li>
<li>On the afternoon of Nov 27, page 2 came back empty in my tests, for both sort orders. Don't count on more than <strong>about 50 reviews per app per country</strong>, but don't stop at the first empty page either.</li>
<li>Treat "200 but no reviews" as "unknown", not as "this app has no reviews". It could be blocking, no written reviews, or a feed problem.</li>
</ul>
<h2>The endpoint</h2>
<pre><code class="language-plaintext">https://itunes.apple.com/{country}/rss/customerreviews/page={page}/id={appId}/sortby={mostrecent|mosthelpful}/json
</code></pre>
<p>Example (Instagram, US store):</p>
<pre><code class="language-plaintext">https://itunes.apple.com/us/rss/customerreviews/page=1/id=389801252/sortby=mostrecent/json
</code></pre>
<p>A normal response has a <code>feed.entry</code> list. Each review entry has <code>im:rating</code>, <code>title</code>, <code>content</code>, <code>author</code>, <code>im:version</code>, <code>updated</code> and vote counts. On page 1 the first entry can be app metadata instead of a review, so skip entries without <code>im:rating</code>.</p>
<p>An "empty" response is still valid JSON with a <code>feed</code> object, but there is no <code>entry</code> key at all. In my case it was about 870 bytes.</p>
<h2>What I saw (Nov 27, 2026)</h2>
<p>Test app: Instagram (<code>389801252</code>), plus two language apps on the GB store. Small sample, one day. Read it as observations, not a rule.</p>
<table>
<thead>
<tr>
<th>Request came from</th>
<th>Result</th>
</tr>
</thead>
<tbody><tr>
<td>Cloud container (Apify), direct</td>
<td>Empty in 3 of 3 runs, with both <code>mostrecent</code> and <code>mosthelpful</code></td>
</tr>
<tr>
<td>Same container, datacenter proxy, new IP</td>
<td>Worked in one run. In another run, two new IPs in a row were still empty</td>
</tr>
<tr>
<td>Same container, US residential proxy</td>
<td>Worked (50 reviews)</td>
</tr>
<tr>
<td>Cloud container, direct, about 9 hours later (GB store)</td>
<td>Worked, 50 reviews for each of 3 apps</td>
</tr>
<tr>
<td>Home ISP in Korea</td>
<td>Worked at 2 pm (100 reviews over 2 pages). By 3:30 pm, empty for every sort order</td>
</tr>
<tr>
<td>Page 2, any source, after 3 pm</td>
<td>Empty. Successful runs ended at 50 reviews, but they stopped at the first empty page, so they say nothing about later pages</td>
</tr>
</tbody></table>
<p>Two more things:</p>
<ul>
<li>Changing the User-Agent did not give a consistent result. A browser UA worked once for app reviews, but for podcast reviews (same feed path, podcast IDs) a browser UA was the one that came back empty.</li>
<li>The podcast review feed worked directly from the cloud at the same time the app review feed was empty. So it did not look like a blanket block of that server.</li>
</ul>
<h2>How I handle it now</h2>
<ol>
<li><strong>Detect the empty feed.</strong> If the status is 200 but there is no review entry, do not record "0 reviews" yet.</li>
<li><strong>Retry once</strong> after a couple of seconds, from the same IP.</li>
<li><strong>Try another route.</strong> If you have proxies, try a new datacenter IP first because it is cheap, then a residential IP in the storefront's country.</li>
<li><strong>Check the rating count if page 1 stays empty.</strong> The lookup API (<code>https://itunes.apple.com/lookup?id={appId}&amp;country={country}</code>) returns <code>userRatingCount</code>. If it is 0, the app has no ratings in that store. If it is above 0, the cause is unknown: blocked, no written reviews (ratings can exist without any), or a feed problem.</li>
<li><strong>Don't stop at an empty later page.</strong> If page 2 or later is empty, note the page number and keep requesting up to page 10. Use lowercase <code>mostrecent</code> or <code>mosthelpful</code> in the URL.</li>
</ol>
<p>The script below does all of this. It uses <code>requests</code> only, and proxies are optional:</p>
<pre><code class="language-bash">pip install requests
python fetch_reviews.py 389801252 --country us --sort mosthelpful
PROXY_URLS="http://user:pass@dc-proxy:8000,http://user:pass@res-proxy:8000" python fetch_reviews.py 389801252
</code></pre>
<p>On page 1 the script tries direct, a direct retry, then every proxy. On later pages it tries direct, a direct retry, then the first proxy only. If page 1 stays empty it stops, with exit code 2 unless the rating count is 0.</p>
<h3>Example progress output (stderr)</h3>
<p>Illustrative, with <code>--pages 3</code> and no proxies, when page 2 is empty:</p>
<pre><code class="language-plaintext">Page 1: 50 reviews via direct
  direct: HTTP 200 but no reviews
  direct retry: HTTP 200 but no reviews
Page 2: no reviews on any route, moving on.
Page 3: 50 reviews via direct
Done: 100 reviews (pages without reviews: 2)
</code></pre>
<p>When page 1 is empty on every route and the app has ratings (<code>12345</code> is a made-up number):</p>
<pre><code class="language-plaintext">  direct: HTTP 200 but no reviews
  direct retry: HTTP 200 but no reviews
Unknown cause (blocked, no written reviews, or a feed problem): empty feed on every route, and the app has 12345 ratings. Try again later or from another IP.
</code></pre>
<p>If the lookup request fails or returns nothing, the middle part reads <code>and the rating count could not be checked</code>.</p>
<h2>The script: fetch_reviews.py</h2>
<pre><code class="language-python">#!/usr/bin/env python3
"""Fetch App Store reviews from Apple's public RSS feed, with a fallback for empty feeds.

Apple sometimes answers HTTP 200 with no reviews in the feed, and the cause is not known
(it may be blocking, no written reviews, or a feed problem). This script retries, tries the
proxies you give it, and checks the lookup API when page 1 stays empty. An empty page 2 or
later is noted and skipped; the script keeps going up to page 10.

Usage:
    python fetch_reviews.py 389801252 --country us --sort mosthelpful --pages 3
    PROXY_URLS="http://dc-proxy:8000,http://res-proxy:8000" python fetch_reviews.py 389801252

Output: one JSON object per review on stdout. Progress goes to stderr.
License: MIT
"""
import argparse
import json
import os
import sys
import time

import requests

FEED = "https://itunes.apple.com/{country}/rss/customerreviews/page={page}/id={app_id}/sortby={sort}/json"
LOOKUP = "https://itunes.apple.com/lookup?id={app_id}&amp;country={country}"
TIMEOUT = 20
MAX_PAGES = 10
UNKNOWN = "Unknown cause (blocked, no written reviews, or a feed problem)"


def log(msg):
    print(msg, file=sys.stderr)


def label(d, *path):
    """Read entry['a']['b']['label'] safely."""
    for key in path:
        d = d.get(key) if isinstance(d, dict) else None
    return d.get("label") if isinstance(d, dict) else None


def review_entries(data):
    entries = (data.get("feed") or {}).get("entry") or []
    if isinstance(entries, dict):  # a single entry comes as an object, not a list
        entries = [entries]
    return [e for e in entries if "im:rating" in e]  # page 1 can start with app metadata


def get_json(url, proxy=None):
    proxies = {"http": proxy, "https": proxy} if proxy else None
    r = requests.get(url, proxies=proxies, timeout=TIMEOUT)
    r.raise_for_status()
    return r.json()


def fetch_page(url, proxy_urls):
    """Return (reviews, route). Empty list means no route returned reviews."""
    routes = [("direct", None), ("direct retry", None)] + [(f"proxy {i + 1}", p) for i, p in enumerate(proxy_urls)]
    for route, proxy in routes:
        if route == "direct retry":
            time.sleep(2)
        try:
            reviews = review_entries(get_json(url, proxy))
        except (requests.RequestException, ValueError) as e:
            log(f"  {route}: {e}")
            continue
        if reviews:
            return reviews, route
        log(f"  {route}: HTTP 200 but no reviews")
    return [], None


def rating_count(app_id, country):
    try:
        results = get_json(LOOKUP.format(app_id=app_id, country=country)).get("results") or []
        return results[0].get("userRatingCount") if results else None
    except (requests.RequestException, ValueError):
        return None


def main():
    ap = argparse.ArgumentParser(description=__doc__.splitlines()[0])
    ap.add_argument("app_id")
    ap.add_argument("--country", default="us")
    ap.add_argument("--sort", default="mosthelpful", choices=["mostrecent", "mosthelpful"])
    ap.add_argument("--pages", type=int, default=MAX_PAGES, help="Apple serves at most 10 pages of 50")
    args = ap.parse_args()
    proxy_urls = [p.strip() for p in os.environ.get("PROXY_URLS", "").split(",") if p.strip()]

    total = 0
    empty_pages = []
    for page in range(1, min(args.pages, MAX_PAGES) + 1):
        url = FEED.format(country=args.country, page=page, app_id=args.app_id, sort=args.sort)
        reviews, route = fetch_page(url, proxy_urls if page == 1 else proxy_urls[:1])
        if not reviews:
            if page == 1:
                count = rating_count(args.app_id, args.country)
                if count == 0:
                    log("The app has no ratings in this store.")
                else:
                    detail = (f"the app has {count} ratings" if count is not None
                              else "the rating count could not be checked")
                    log(f"{UNKNOWN}: empty feed on every route, and {detail}. "
                        "Try again later or from another IP.")
                    sys.exit(2)
                break
            log(f"Page {page}: no reviews on any route, moving on.")
            empty_pages.append(page)
            continue
        log(f"Page {page}: {len(reviews)} reviews via {route}")
        for e in reviews:
            print(json.dumps({
                "id": label(e, "id"),
                "rating": label(e, "im:rating"),
                "title": label(e, "title"),
                "text": label(e, "content"),
                "author": label(e, "author", "name"),
                "version": label(e, "im:version"),
                "date": label(e, "updated"),
                "votes": label(e, "im:voteCount"),
            }, ensure_ascii=False))
        total += len(reviews)
    skipped = f" (pages without reviews: {', '.join(map(str, empty_pages))})" if empty_pages else ""
    log(f"Done: {total} reviews{skipped}")


if __name__ == "__main__":
    main()
</code></pre>
<h2>Unknowns</h2>
<ul>
<li>Apple does not document this feed, so it can change at any time.</li>
<li>I only have a few days of data. I don't know why the feed comes back empty: IP range, request rate, app, time of day or something else.</li>
<li>If you have seen different behavior, please leave a comment. I'd like to compare notes.</li>
</ul>
<h2>If you don't want to maintain this</h2>
<p>I packaged a similar retry and proxy fallback, plus multi-country runs and app search by name, into an Apify Actor: <a href="https://apify.com/ondutylabs/app-store-reviews">App Store Reviews &amp; App Info Scraper</a>. It logs which step worked (direct, datacenter or residential) and doesn't charge for rows it couldn't fetch.</p>
<p>Disclosure: I'm the author of that Actor. These notes were written with help from an AI assistant. The test results are from my own runs.</p>
<h2>License</h2>
<p>The script is MIT-licensed, so copy and change it freely. The notes are free to quote with a link back.</p>
<h2>Update (2026-12-04)</h2>
<p>A comment pointed out problems in this post, and I agree. I no longer present the IP as the cause, or a non-zero <code>userRatingCount</code> with an empty feed as proof of a block: the cause is unknown.</p>
<p>The script now says so, keeps going past an empty page 2 or later (up to page 10), and caps <code>--pages</code> at 10.</p>
<p>In a local <code>apify run</code> of my App Store Reviews Actor (not this script) from a home connection in Korea on 2026-12-03 UTC, for Instagram (US store, <code>mostHelpful</code> sort), page 3 came back empty but pages 4-10 had reviews, 450 in total. A separate rerun at 16:05 UTC got all 500 with no empty page, so this did not repeat every time.</p>
]]></content:encoded></item></channel></rss>