summaryrefslogtreecommitdiff
path: root/phenny_paper.py
blob: a4cf9c4dc8d87cedee5066bc921c2410e1c3408a (plain)
1
2
3
4
5
6
7
8
9
10
import sciencedirect
import doi

def fetchpaper(phenny, input):
    url = input.group(2)
    if url.lower().startswith('doi:'):
        url = doi.doi( url[4:] )
    phenny.say("Fetching %s..." % url)

fetchpaper.commands = ['paper'];