mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-01-30 14:13:44 +00:00
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
This commit is contained in:
parent
1ca59d0ee1
commit
355ae4c6c3
|
@ -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 = {
|
||||
|
|
Loading…
Reference in New Issue
Block a user