diff --git a/extruct/opengraph.py b/extruct/opengraph.py index 78e836bf..c81be246 100644 --- a/extruct/opengraph.py +++ b/extruct/opengraph.py @@ -11,6 +11,8 @@ 'article': 'http://ogp.me/ns/article#', 'book': 'http://ogp.me/ns/book#', 'profile': 'http://ogp.me/ns/profile#', + # non-standard but seen in the wild + 'product': 'http://ogp.me/ns/product#', # ~10% of product pages with OG } diff --git a/tests/samples/misc/opengrapg_test.json b/tests/samples/misc/opengrapg_test.json deleted file mode 100644 index 4b21e3c5..00000000 --- a/tests/samples/misc/opengrapg_test.json +++ /dev/null @@ -1,40 +0,0 @@ -[ - { - "type": [ - "h-entry" - ], - "properties": { - "name": [ - "Microformats are amazing" - ], - "author": [ - { - "type": [ - "h-card" - ], - "properties": { - "name": [ - "W. Developer" - ], - "url": [ - "http://example.com" - ] - }, - "value": "W. Developer" - } - ], - "published": [ - "2013-06-13 12:00:00" - ], - "summary": [ - "In which I extoll the virtues of using microformats." - ], - "content": [ - { - "html": "\n
Blah blah blah
\n", - "value": "\nBlah blah blah\n" - } - ] - } - } -] \ No newline at end of file diff --git a/tests/samples/misc/opengraph_ns_product_test.html b/tests/samples/misc/opengraph_ns_product_test.html new file mode 100644 index 00000000..109b783b --- /dev/null +++ b/tests/samples/misc/opengraph_ns_product_test.html @@ -0,0 +1,21773 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +