Skip to content

Commit

Permalink
auto remove dashes in title
Browse files Browse the repository at this point in the history
  • Loading branch information
Aneoshun committed May 15, 2024
1 parent bb789a3 commit bbf0b07
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion add_paper.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def clean_string(string):
paper_title = sys.argv[i].replace(":", "")
print(f"\033[93mprocessing: {paper_title}\033[0m")
paper_title_nospace = urllib.parse.quote_plus(paper_title)
paper_title_nospace = paper_title_nospace.replace("-", " ")
paper_title_nospace = paper_title_nospace.replace("-", "+")
#print(paper_title_nospace)
# URLs to get info from arxiv and crossref
urlarxiv = f'http://export.arxiv.org/api/query?search_query=ti:{paper_title_nospace}&start=0&max_results=1&sortBy=relevance&sortOrder=ascending'
Expand Down

0 comments on commit bbf0b07

Please sign in to comment.