Created
June 16, 2020 17:17
-
-
Save Allwin12/a538b594bb74a5a05b0a8fc7e55d8d83 to your computer and use it in GitHub Desktop.
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
from json2xml import json2xml | |
from json2xml.utils import readfromurl, readfromstring, readfromjson | |
data = readfromurl("http://api.plos.org/search?q=title:%22Drosophila%22%20and%20body:%22RNA%22&fl=id&start=1&rows=10") | |
print(json2xml.Json2xml(data, attr_type=False).to_xml()) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment