-
Notifications
You must be signed in to change notification settings - Fork 114
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #74 from scrapinghub/flatten-microformat-children
Flatten microformat children
- Loading branch information
Showing
5 changed files
with
242 additions
and
86 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,78 @@ | ||
[ | ||
{ | ||
"@type": ["h-entry"], | ||
"@context": "http://microformats.org/wiki/", | ||
{ | ||
"@type": [ | ||
"h-hidden-tablet", | ||
"h-hidden-phone" | ||
], | ||
"@context": "http://microformats.org/wiki/", | ||
"name": [ | ||
"" | ||
] | ||
}, | ||
{ | ||
"@type": [ | ||
"h-hidden-phone" | ||
], | ||
"@context": "http://microformats.org/wiki/", | ||
"name": [ | ||
"" | ||
], | ||
"children": [ | ||
{ | ||
"@type": [ | ||
"h-hidden-tablet", | ||
"h-hidden-phone" | ||
], | ||
"name": [ | ||
"Microformats are amazing" | ||
"" | ||
] | ||
}, | ||
{ | ||
"@type": [ | ||
"h-hidden-phone" | ||
], | ||
"author": [ | ||
{ | ||
"@type": ["h-card"], | ||
"name": [ | ||
"W. Developer" | ||
], | ||
"url": [ | ||
"http://example.com" | ||
], | ||
"value": "W. Developer" | ||
} | ||
"name": [ | ||
"aJ Styles FastLane 2018 15 x 17 Framed Plaque w/ Ring Canvas" | ||
], | ||
"published": [ | ||
"2013-06-13 12:00:00" | ||
"photo": [ | ||
"/on/demandware.static/-/Sites-main/default/dwa3227ee6/images/small/CN1148.jpg" | ||
] | ||
} | ||
] | ||
}, | ||
{ | ||
"@type": [ | ||
"h-entry" | ||
], | ||
"@context": "http://microformats.org/wiki/", | ||
"name": [ | ||
"Microformats are amazing" | ||
], | ||
"author": [ | ||
{ | ||
"value": "W. Developer", | ||
"@type": [ | ||
"h-card" | ||
], | ||
"summary": [ | ||
"In which I extoll the virtues of using microformats." | ||
"name": [ | ||
"W. Developer" | ||
], | ||
"content": [ | ||
{ | ||
"html": "\n<p>Blah blah blah</p>\n", | ||
"value": "\nBlah blah blah\n" | ||
} | ||
] | ||
} | ||
] | ||
"url": [ | ||
"http://example.com" | ||
] | ||
} | ||
], | ||
"published": [ | ||
"2013-06-13 12:00:00" | ||
], | ||
"summary": [ | ||
"In which I extoll the virtues of using microformats." | ||
], | ||
"content": [ | ||
{ | ||
"html": "\n<p>Blah blah blah</p>\n", | ||
"value": "\nBlah blah blah\n" | ||
} | ||
] | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,40 +1,87 @@ | ||
[ | ||
{ | ||
{ | ||
"type": [ | ||
"h-hidden-tablet", | ||
"h-hidden-phone" | ||
], | ||
"properties": { | ||
"name": [ | ||
"" | ||
] | ||
} | ||
}, | ||
{ | ||
"type": [ | ||
"h-hidden-phone" | ||
], | ||
"properties": { | ||
"name": [ | ||
"" | ||
] | ||
}, | ||
"children": [ | ||
{ | ||
"type": [ | ||
"h-hidden-tablet", | ||
"h-hidden-phone" | ||
], | ||
"properties": { | ||
"name": [ | ||
"" | ||
] | ||
} | ||
}, | ||
{ | ||
"type": [ | ||
"h-entry" | ||
"h-hidden-phone" | ||
], | ||
"properties": { | ||
"name": [ | ||
"aJ Styles FastLane 2018 15 x 17 Framed Plaque w/ Ring Canvas" | ||
], | ||
"photo": [ | ||
"/on/demandware.static/-/Sites-main/default/dwa3227ee6/images/small/CN1148.jpg" | ||
] | ||
} | ||
} | ||
] | ||
}, | ||
{ | ||
"type": [ | ||
"h-entry" | ||
], | ||
"properties": { | ||
"name": [ | ||
"Microformats are amazing" | ||
], | ||
"author": [ | ||
{ | ||
"type": [ | ||
"h-card" | ||
], | ||
"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" | ||
"W. Developer" | ||
], | ||
"summary": [ | ||
"In which I extoll the virtues of using microformats." | ||
], | ||
"content": [ | ||
{ | ||
"html": "\n<p>Blah blah blah</p>\n", | ||
"value": "\nBlah blah blah\n" | ||
} | ||
"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<p>Blah blah blah</p>\n", | ||
"value": "\nBlah blah blah\n" | ||
} | ||
] | ||
} | ||
] | ||
} | ||
] |
Oops, something went wrong.