Skip to content
Snippets Groups Projects
Commit ec7d67b7 authored by Enzo Simonnet's avatar Enzo Simonnet
Browse files

version mieux ?

parent 856610b4
No related branches found
No related tags found
No related merge requests found
...@@ -24,10 +24,13 @@ class Wiktextract: ...@@ -24,10 +24,13 @@ class Wiktextract:
page = self.wxr.wtp.get_page(title) page = self.wxr.wtp.get_page(title)
if not page: if not page:
return None return None
result = parse_page(self.wxr, title, page.body)
converted_result = self.convert(result)
result = parse_page(self.wxr, title, page.body)
#print(json.dumps(result), "\n\n\n")
converted_result = self.convert(result)
print(json.dumps(converted_result))
return json.dumps(converted_result) return json.dumps(converted_result)
#return result #return result
...@@ -90,7 +93,6 @@ class Wiktextract: ...@@ -90,7 +93,6 @@ class Wiktextract:
# Copy the translations attribute # Copy the translations attribute
transformed_pos["translations"] = pos.get("translations", []) transformed_pos["translations"] = pos.get("translations", [])
transformed_data.append(transformed_pos) transformed_data.append(transformed_pos)
return transformed_data return transformed_data
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment