Skip to content

Instantly share code, notes, and snippets.

@filak
filak / ris.py
Created May 20, 2022 15:04 — forked from dperezrada/ris.py
Tool for parsing RIS files using python
import io
import sys
import re
import csv
import json
def get_parts(ris_file_text):
ris_text_parts = re.split(r'\nER -( |\n|$)', ris_file_text)
if len(ris_text_parts) == 1:
ris_text_parts = re.split(r'\r?\n\r?\n', ris_file_text)
#!/usr/bin/env python3
import datetime
import jwt # pip install pyjwt
app_id = 'SIGLA'
shared_secret = 'add_secret_here'
now = datetime.datetime.utcnow()
token_dict = dict(
iss = app_id,