Giter Site home page Giter Site logo

get_bibtex's Introduction

get bibtex from crossref and google scholar

Switch to Chinese

Introduction

This is a simple python script to get bibtex from crossref and google scholar. It is useful when you want to get bibtex for a list of DOIs or titles.

Depend

  • requests // for http request
  • re // for regular expression
  • serpapi // for google scholar
  • tqdm // for progress bar
  • python >=3.8

Usage

look at the example in example_main.py

from apiModel.getbibtex_from_crossref import GetBibTex

get_bibtex_from_crossref = GetBibTex("your email")
doi = "10.1145/3313831.3376234"
bibtex = get_bibtex_from_crossref.get_bibtex(doi)

# or use title
title = "A Survey of Modern Authorship Attribution Methods"
bibtex = get_bibtex_from_crossref.get_bibtex(title)

get_bibtex's People

Contributors

liyown avatar

Stargazers

 avatar

Watchers

 avatar

get_bibtex's Issues

报错,请问该如何解决?

from apiModels.get_bibtex_from_crossref import GetBibTex

File "D:\anaconda\envs\styleGAN3\lib\site-packages\apiModels\get_bibtex_from_crossref.py", line 5, in
from apiModels.meta_class import AbstractGetBibTex
File "D:\anaconda\envs\styleGAN3\lib\site-packages\apiModels\meta_class.py", line 1, in
class AbstractGetBibTex:
File "D:\anaconda\envs\styleGAN3\lib\site-packages\apiModels\meta_class.py", line 10, in AbstractGetBibTex
def get_bibtexs(self, citations: list) -> tuple[list[str], list[str]]:
TypeError: 'type' object is not subscriptable

新bug,请问如何解决...

from apiModels.get_bibtex_from_google_scholar import GetBibTexFromGoogleScholar

File "D:\anaconda\Lib\site-packages\apiModels\get_bibtex_from_google_scholar.py", line 4, in
from serpapi import GoogleSearch
ImportError: cannot import name 'GoogleSearch' from 'serpapi' (D:\anaconda\Lib\site-packages\serpapi_init_.py)

我在您的知乎文章评论区也看到了同样的问题,serpapi 已经安装了。

你好,关于返回bibtex格式的文献问题。

您在readme中提到若需要返回bibtex格式的文献,则需要需要设置代理服务器。请问这步的具体步骤应该怎么弄?因为本人没有接触过服务器相关知识,期待您的回复,十分感谢!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.