-
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 #71 from scrapinghub/fix-microdata-properties-urljoin
Fix urljoin in microdata
- Loading branch information
Showing
17 changed files
with
145 additions
and
43 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
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
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
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 |
---|---|---|
|
@@ -6,4 +6,5 @@ gevent | |
requests | ||
rdflib | ||
rdflib-jsonld | ||
mf2py | ||
mf2py | ||
w3lib |
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,12 +1,12 @@ | ||
[{"properties": {"location": {"properties": {"address": {"properties": {"addressLocality": "Philadelphia", | ||
"addressRegion": "PA"}, | ||
"type": "http://schema.org/PostalAddress"}, | ||
"url": "http://www.example.com/wells-fargo-center.html"}, | ||
"url": "wells-fargo-center.html"}, | ||
"type": "http://schema.org/Place"}, | ||
"name": "Miami Heat at Philadelphia 76ers - Game 3 (Home Game 1)", | ||
"offers": {"properties": {"lowPrice": "$35", | ||
"offerCount": "1938"}, | ||
"type": "http://schema.org/AggregateOffer"}, | ||
"startDate": "2016-04-21T20:00", | ||
"url": "http://www.example.com/nba-miami-philidelphia-game3.html"}, | ||
"url": "nba-miami-philidelphia-game3.html"}, | ||
"type": "http://schema.org/Event"}] |
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
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 |
---|---|---|
@@ -0,0 +1,38 @@ | ||
<!DOCTYPE HTML> | ||
<html> | ||
<head> | ||
<title>Photo gallery</title> | ||
</head> | ||
<body> | ||
|
||
<div itemscope itemtype="http://schema.org/Product"> | ||
<span itemprop="brand">ACME</span> | ||
<span itemprop="name">Executive Anvil</span> | ||
<img itemprop="image" src=" anvil_executive.jpg | ||
" alt="Executive Anvil logo" /> | ||
<span itemprop="description">Sleeker than ACME's Classic Anvil, the | ||
Executive Anvil is perfect for the business traveler | ||
looking for something to drop from a height. | ||
</span> | ||
Product #: <span itemprop="mpn">925872</span> | ||
<span itemprop="aggregateRating" itemscope itemtype="http://schema.org/AggregateRating"> | ||
<span itemprop="ratingValue">4.4</span> stars, based on <span itemprop="reviewCount">89 | ||
</span> reviews | ||
</span> | ||
|
||
<span itemprop="offers" itemscope itemtype="http://schema.org/Offer"> | ||
Regular price: $179.99 | ||
<meta itemprop="priceCurrency" content="USD" /> | ||
$<span itemprop="price">119.99 </span> | ||
(Sale ends <time itemprop="priceValidUntil" datetime="2020-11-05"> | ||
5 November!</time>) | ||
Available from: <span itemprop="seller" itemscope itemtype="http://schema.org/Organization"> | ||
<span itemprop="name">Executive Objects</span> | ||
</span> | ||
Condition: <link itemprop="itemCondition" href="http://schema.org/UsedCondition"/>Previously owned, | ||
in excellent condition | ||
<link itemprop="availability" href=" http://schema.org/InStock"/>In stock! Order now! | ||
</span> | ||
</div> | ||
</body> | ||
</html> |
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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
[{"type": "http://schema.org/Product", | ||
"properties": {"brand": "ACME", | ||
"name": "Executive Anvil", | ||
"image": "anvil_executive.jpg", | ||
"description": "Sleeker than ACME's Classic Anvil, the\n Executive Anvil is perfect for the business traveler\n looking for something to drop from a height.", | ||
"mpn": "925872", | ||
"aggregateRating": {"type": "http://schema.org/AggregateRating", | ||
"properties": {"ratingValue": "4.4", | ||
"reviewCount": "89"}}, | ||
"offers": {"type": "http://schema.org/Offer", | ||
"properties": {"priceCurrency": "USD", | ||
"price": "119.99", | ||
"priceValidUntil": "2020-11-05", | ||
"seller": {"type": "http://schema.org/Organization", | ||
"properties":{"name": "Executive Objects"}}, | ||
"itemCondition": "http://schema.org/UsedCondition", | ||
"availability": "http://schema.org/InStock"}} | ||
} | ||
}] |
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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
[{"type": "http://schema.org/Product", | ||
"properties": {"brand": "ACME", | ||
"name": "Executive Anvil", | ||
"image": "http://example.com/anvil_executive.jpg", | ||
"description": "Sleeker than ACME's Classic Anvil, the\n Executive Anvil is perfect for the business traveler\n looking for something to drop from a height.", | ||
"mpn": "925872", | ||
"aggregateRating": {"type": "http://schema.org/AggregateRating", | ||
"properties": {"ratingValue": "4.4", | ||
"reviewCount": "89"}}, | ||
"offers": {"type": "http://schema.org/Offer", | ||
"properties": {"priceCurrency": "USD", | ||
"price": "119.99", | ||
"priceValidUntil": "2020-11-05", | ||
"seller": {"type": "http://schema.org/Organization", | ||
"properties":{"name": "Executive Objects"}}, | ||
"itemCondition": "http://schema.org/UsedCondition", | ||
"availability": "http://schema.org/InStock"}} | ||
} | ||
}] |
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,8 +1,8 @@ | ||
[{"properties": {"title": ["The house I found."], | ||
"work": ["http://www.example.com/images/house.jpeg"], | ||
"work": ["images/house.jpeg"], | ||
"license": ["http://www.opensource.org/licenses/mit-license.php"]}, | ||
"type": ["http://n.whatwg.org/work"]}, | ||
{"properties": {"title": ["The mailbox."], | ||
"work": ["http://www.example.com/images/mailbox.jpeg"], | ||
"work": ["images/mailbox.jpeg"], | ||
"license": ["http://www.opensource.org/licenses/mit-license.php"]}, | ||
"type": ["http://n.whatwg.org/work"]}] |
Oops, something went wrong.