Skip to content

Instantly share code, notes, and snippets.

View mdeweerdt's full-sized avatar

Mathijs de Weerdt mdeweerdt

View GitHub Profile
@mdeweerdt
mdeweerdt / pure2bibtex.py
Created June 19, 2021 08:53 — forked from avandeursen/pure2bibtex.py
Turn a publication list in an Elsevier Pure web page into a list of bibtex entries with urls back to Pure.
import sys
import requests
from bs4 import BeautifulSoup
# Set to the PURE page you'd like to get the bibtex entries from. Here's mine:
pure = "https://pure.tudelft.nl/portal/en/persons/a-van-deursen(949eb2cc-4db0-4f33-bd56-13425fa5c24a)/publications.html?page=0"
class BibTexEntry:
def __init__(self, entry):