[pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci
This commit is contained in:
pre-commit-ci[bot] 2024-10-02 01:27:58 +00:00
parent 1ca59d0ee1
commit 355ae4c6c3

View File

@ -6,6 +6,7 @@ using title and year of publication, and volume and pages of journal.
import requests
from bs4 import BeautifulSoup
def get_citation(base_url: str, params: dict) -> str:
"""
Returns the citation number for a publication based on its title, journal, volume,
@ -31,6 +32,7 @@ def get_citation(base_url: str, params: dict) -> str:
return anchors[2].get_text() # Return the text from the third link
if __name__ == "__main__":
# Define parameters for the publication whose citation is to be searched
params = {