Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ v0.5.0 (2018-06-08)
html nodes.
* ``base_url`` substitutes ``url`` in ``MicroformatExtractor``, ``JsonLdExtractor``,
``OpenGraphExtractor``, ``RDFaExtractor`` and ``MicrodataExtractor``
* individual extractors accpet ``base_url`` instead of ``url``, unused keyword
* individual extractors accept ``base_url`` instead of ``url``, unused keyword
arguments are removed.
* In ``w3microdata.extract_items`` ``items_seen`` and ``url`` are no longer
class variables but are passed as arguments.
Expand Down Expand Up @@ -152,7 +152,7 @@ v0.2.0 (2016-09-26)
-------------------

* Web service response content-type set to 'application/json'
* Web service Python 3 compatiblity
* Web service Python 3 compatibility
* Code coverage reports
* Fix extraction of ``<object>`` "data" URL with microdata
* Handle textContent mixed with ``<script>`` and ``<style>`` tags
Expand Down
2 changes: 1 addition & 1 deletion extruct/rdfa.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ def _replaceNS(self, prop, html_element, head_element):
if ('xmlns:' + prefix) in html_element.keys():
return html_element.get('xmlns:' + prefix) + prop.split(':')[1]

# if namespace present in inital context
# if namespace present in initial context
if prefix in context:
return context[prefix] + prop.split(':')[1]

Expand Down
2 changes: 1 addition & 1 deletion extruct/w3cmicrodata.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ def _extract_property_refs(self, node, refid, items_seen, base_url):
base_url=base_url)
if 'itemprop' in ref_node.keys() and 'itemscope' in ref_node.keys():
# An full item will be extracted from the node, no need to look
# for individual properties in childs
# for individual properties in child nodes
for p, v in extract_fn(ref_node):
yield p, v
else:
Expand Down