We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3aaebd5 commit 843b2e6Copy full SHA for 843b2e6
tests/test_extruct.py
@@ -16,6 +16,8 @@ def test_all(self):
16
body = get_testdata('songkick', 'elysianfields.html')
17
expected = json.loads(get_testdata('songkick', 'elysianfields.json').decode('UTF-8'))
18
data = extruct.extract(body, base_url='http://www.songkick.com/artists/236156-elysian-fields')
19
+ # Sorting the values here because RDFa is not preserving ordering on duplicated properties.
20
+ # See https://github.com/scrapinghub/extruct/issues/116
21
for rdf in data['rdfa']:
22
for key, pairs in rdf.items():
23
if ':' in key and isinstance(pairs, list):
0 commit comments