Skip to content
Snippets Groups Projects
Commit 0cff3f23 authored by Jochens, Florian's avatar Jochens, Florian
Browse files

fixed bug in get_citation_info()

parent 32c54ac0
No related branches found
No related tags found
4 merge requests!21abstract fetch function,!6Updating the input files,!4fixed bug in get_citation_info(),!3fixed bug in get_citation_info()
This commit is part of merge request !3. Comments created here will be created in the context of that merge request.
File added
......@@ -82,6 +82,7 @@ def download(url): # Download citation and references file
print("File does not exist")
def get_citation_info(pub, num_citations, soup):
pub._citations = []
details = soup.find('ol', class_ = 'cited-content_cbyCitation')
titles = []
for title in details.find_all('span',
......
......@@ -3,10 +3,13 @@
from input_fj import input, print_pub_info
import sys
if len(sys.argv) != 2:
if len(sys.argv) != 3:
sys.stderr.write('Usage: {} <url>\n'.format(sys.argv[0]))
exit(1)
url = sys.argv[1]
url2 = sys.argv[2]
pub = input(url)
print_pub_info(pub)
pub2 = input(url2)
print_pub_info(pub2)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment