Skip to content

Live check: own-file links from the checkout, two README block fixes - #2

Merged
anil-bd merged 1 commit into
mainfrom
fix/live-check-links-and-readme-blocks
Nov 24, 2026
Merged

anil-bd merged 1 commit into
mainfrom
fix/live-check-links-and-readme-blocks

Conversation

@anil-bd

@anil-bd anil-bd commented Nov 24, 2026

Copy link
Copy Markdown
Collaborator

Problem

The last two weekly live checks failed for three separate reasons:

  1. Links (run): GitHub answered 503 for the README's three blob/main links (CONTRIBUTING.md, LICENSE, examples/sample_output.json). Every other link answered 200, and the three resolve today. GitHub throttles /blob/ pages for Actions runners, and amazon-scraper hit the same three links in the same hour.
  2. Block 10, TikTok Shop (same run): Product not available. for the earbuds listing. It scrapes again today, but it comes from a small seller and has changed since the README was written (title rewritten, $13.99 → $23.18), so it's a fragile fixture.
  3. Block 8, posts by keyword (previous run): KeyError: 'account_id'. result.data included an error row, and the example read account_id on every row. It passed this week only because no error row came back.

Fix

  1. live.yml: links to github.com/brightdata/tiktok-scraper/blob/main/<path> now check that <path> exists in the checkout instead of fetching github.com. A renamed or deleted file still fails the step.
  2. Both Shop examples (the raw-HTTP block and the bdata pipelines run command) now use The Ordinary Daily Hydration Glass Bottle from The Ordinary's official store. The sample output and the "N fields" line come from a real run on 24-Nov-26: The Ordinary Daily Hydration Glass Bottle 19.99 USD The Ordinary Store, 49 fields.
  3. Block 8 skips error rows with if "error" in post: ...; continue, the same handling the README's error table describes.

Verified

  • Link step, run locally: the three links pass from the checkout. With LICENSE removed, it prints ::error::no such file in the repo: LICENSE and exits 1.
  • Block 8 with a stub returning one post plus one Crawl aborted on job cancel row: before, KeyError: 'account_id'; after, it prints the post and error row: ....
  • Block 10's product: scraped twice with gd_m45m1u911dsa4274pi (no error, values match the new sample output).

The next Monday live check runs every block against the real API.

🤖 Generated with Claude Code

- Links: github.com answered 503 for the README's three blob/main links
  while every other link answered 200. The step now checks those files
  in the checkout instead of over HTTP.
- Posts by keyword: last week's run crashed with KeyError: 'account_id'
  on an error row. The example now skips error rows.
- TikTok Shop: the API answered "Product not available." for the
  earbuds listing, a small seller whose title and price have since
  changed. Both examples now use The Ordinary's official-store bottle,
  with output and field count from a run on 24-Nov-26.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@anil-bd
anil-bd merged commit 28ff397 into main Nov 24, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant