Skip to content

Add search and social sharing metadata - #8

Merged
Change3333 merged 2 commits into
mainfrom
agent/add-search-social-metadata
Jul 30, 2026
Merged

Change3333 merged 2 commits into
mainfrom
agent/add-search-social-metadata

Conversation

@Change3333

Copy link
Copy Markdown
Owner

What changed

  • add a canonical URL and search description to the homepage
  • add Open Graph and Twitter large-image metadata using the existing project artwork
  • add robots.txt that allows the public page and excludes the extraction API
  • add a minimal sitemap.xml containing only the public homepage
  • honor Nginx's X-Forwarded-Proto value so generated URLs remain HTTPS behind the production proxy
  • add regression tests for all discovery endpoints and metadata

Why

The public demo is now available over HTTPS, but it does not yet expose the metadata used by search engines and link-preview crawlers. These additions make shared links clearer and give crawlers an explicit, safe path to the public page without advertising the POST API.

Validation

  • git diff --check
  • python -m py_compile douyin_desc.py
  • python -m unittest discover -s tests -v — 30 tests passed
  • rendered robots.txt and sitemap.xml were verified with https://change333.dpdns.org/ as the generated public URL

@Change3333
Change3333 marked this pull request as ready for review July 30, 2026 10:34
@Change3333
Change3333 merged commit 4e6168c into main Jul 30, 2026
2 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