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 articlemeta.client import RestfulClient | |
""" | |
pip install articlemetaapi | |
Allowed formats: | |
xylose: default | |
xmlrsps | |
xmlwos | |
xmldoaj |
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 io import BytesIO | |
import argparse | |
from urllib.parse import urlparse, urlencode, parse_qs, urlunparse | |
from articlemeta.client import RestfulClient | |
import requests | |
from lxml import etree | |
LIMIT = 100 |
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
import json | |
from xylose.scielodocument import Article | |
def load_document_from_file(filename): | |
with open(filename, 'r') as f: | |
for line in f: | |
data = json.loads(line) | |
article = Article(data) |