Skip to content

Commit 7d245b3

Browse files
Merge pull request #152 from scrapinghub/og-product
Add "product" namespace support for opengraph
2 parents df7ca6b + e12b2b2 commit 7d245b3

File tree

5 files changed

+21838
-43
lines changed

5 files changed

+21838
-43
lines changed

extruct/opengraph.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111
'article': 'http://ogp.me/ns/article#',
1212
'book': 'http://ogp.me/ns/book#',
1313
'profile': 'http://ogp.me/ns/profile#',
14+
# non-standard but seen in the wild
15+
'product': 'http://ogp.me/ns/product#', # ~10% of product pages with OG
1416
}
1517

1618

tests/samples/misc/opengrapg_test.json

Lines changed: 0 additions & 40 deletions
This file was deleted.

0 commit comments

Comments
 (0)