This file contains hidden or 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 os | |
from json import JSONDecodeError | |
import requests | |
OTS_API_HOST = os.environ.get('OTS_API_HOST', 'http://pkp-udev.lib.sfu.ca/') | |
OTS_CITATION_STYLE_HASH = os.environ.get('OTS_CITATION_STYLE_HASH', '3f0f7fede090f24cc71b7281073996be') | |
OTS_CONVERSION_STAGE = os.environ.get('OTS_CONVERSION_STAGE', '5') | |
class OTSError(Exception): |
This file contains hidden or 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
[root@330e938ed841 swftools-2013-04-09-1007]# ./configure | |
checking build system type... x86_64-unknown-linux-gnu | |
checking host system type... x86_64-unknown-linux-gnu | |
checking for gcc... gcc | |
checking whether the C compiler works... yes | |
checking for C compiler default output file name... a.out | |
checking for suffix of executables... | |
checking whether we are cross compiling... no | |
checking for suffix of object files... o | |
checking whether we are using the GNU C compiler... yes |
This file contains hidden or 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
#!/usr/bin/python | |
from __future__ import print_function | |
import argparse | |
import sys | |
from googleapiclient.errors import HttpError | |
from googleapiclient import sample_tools | |
from apiclient.discovery import build | |
from oauth2client.service_account import ServiceAccountCredentials |
This file contains hidden or 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) |
This file contains hidden or 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 hidden or 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 hidden or 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
[ | |
{ | |
"Id": "71ce40619139697a48f13f9ec1a5084ddf6603188df1ff4feecf5592e2e05a1e", | |
"Created": "2017-05-04T16:14:41.188422797Z", | |
"Path": "/.r/r", | |
"Args": [ | |
"publicationstats_loaddata", | |
"-i", | |
"-d", | |
"journal", |
Parsing Crossref Schema with Python
This file contains hidden or 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
<li class="pdf-link"> | |
<img src="/img/readcube.png" width="21" heigth="21"> | |
<a href="http://www.readcube.com/articles/10.1590/S0004-28032012000300003?tab=summary" target="_blank">ReadCube</a> | |
</li> | |
<li class="readcube-epdf-link"> | |
<img src="/img/readcube.png" width="21" heigth="21"> | |
<a href="/readcube/epdf.php?doi=10.1590/S0004-28032012000300003&pid=S0004-28032012000300003&pdf_path=ag/v49n3/v49n3a03.pdf" title="Article in epdf format">ReadCube ePDF</a> | |
</li> |
NewerOlder