bib2web/gscholar.py
def pdflookup(pdf, allresults, outformat):
    """Look a pdf up on google scholar and return bibtex items."""
    txt = convert_pdf_to_txt(pdf)
    # remove all non alphanumeric characters
    txt = re.sub("\W", " ", txt)
    words = txt.strip().split()[:20]
    gsquery = " ".join(words)
    bibtexlist = query(gsquery, outformat, allresults)
    return bibtexlist
Look a pdf up on google scholar and return bibtex items.
Look a pdf up on google scholar and return bibtex items.
Look a pdf up on google scholar and return bibtex items .
def pdflookup(pdf, allresults, outformat):
    txt = convert_pdf_to_txt(pdf)
    txt = re.sub("\W", " ", txt)
    words = txt.strip().split()[:20]
    gsquery = " ".join(words)
    bibtexlist = query(gsquery, outformat, allresults)
    return bibtexlist
def pdflookup ( pdf , allresults , outformat ) : txt = convert_pdf_to_txt ( pdf ) txt = re . sub ( "\W" , " " , txt ) words = txt . strip ( ) . split ( ) [ : 20 ] gsquery = " " . join ( words ) bibtexlist = query ( gsquery , outformat , allresults ) return bibtexlist
Look a pdf up on google scholar and return bibtex items.
Look a pdf up on google scholar and return bibtex items .
"""Look a pdf up on google scholar and return bibtex items.""" # remove all non alphanumeric characters
pdf
allresults
outformat