Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Schema scraping strategy to handle microdata #106

Open
Tracked by #111 ...
qdequele opened this issue Nov 9, 2024 · 0 comments
Open
Tracked by #111 ...

Update Schema scraping strategy to handle microdata #106

qdequele opened this issue Nov 9, 2024 · 0 comments

Comments

@qdequele
Copy link
Member

qdequele commented Nov 9, 2024

When using Schema.org markup directly in HTML tags, the markup is often referred to as “microdata”. Microdata is a form of embedding structured data directly into the HTML using specific attributes like itemprop, itemscope, and itemtype.

Here’s a quick breakdown of how it works:
1. itemscope: Declares a new item with a specific type.
2. itemtype: Defines the type of the item by providing the Schema.org URL (e.g., https://schema.org/Product).
3. itemprop: Assigns properties to the item (e.g., name, price, description).

Example of Schema.org Microdata in HTML

<div itemscope itemtype="https://schema.org/Product">
  <span itemprop="name">Meilisearch</span>
  <span itemprop="description">A powerful, developer-friendly search engine</span>
  <span itemprop="priceCurrency" content="USD">USD</span>
  <span itemprop="price" content="19.99">19.99</span>
</div>
This was referenced Nov 9, 2024
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

No branches or pull requests

1 participant