You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 3, 2020. It is now read-only.
I just tried to get rid of one of my wordpress blogs but pretty early had to stop because of this:
reading: wordpress-xml/photos.xml
Traceback (most recent call last):
File "exitwp.py", line 292, in <module>
data=parse_wp_xml(wpe)
File "exitwp.py", line 127, in parse_wp_xml
'items': parse_items(),
File "exitwp.py", line 111, in parse_items
'date' : gi('wp:post_date'),
File "exitwp.py", line 91, in gi
result=i.find(ns[namespace]+tag).text
AttributeError: 'NoneType' object has no attribute 'text'
Am I doing it wrong?
The text was updated successfully, but these errors were encountered:
It looks like this is related to the namespaces. With newer versions of wordpress blogs, these namespaces are different so exitwp.py can't find the xml elements it needs to process:
ns = {
'':'', #this is the default namespace
'excerpt':"{http://wordpress.org/export/1.1/excerpt/}",
'content':"{http://purl.org/rss/1.0/modules/content/}",
'wfw':"{http://wellformedweb.org/CommentAPI/}",
'dc':"{http://purl.org/dc/elements/1.1/}",
'wp':"{http://wordpress.org/export/1.1/}"
}
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I just tried to get rid of one of my wordpress blogs but pretty early had to stop because of this:
Am I doing it wrong?
The text was updated successfully, but these errors were encountered: