Skip to content

Commit

Permalink
change arxiv download attempt url order
Browse files Browse the repository at this point in the history
  • Loading branch information
binary-husky committed Oct 15, 2024
1 parent e34c49d commit c83bf21
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crazy_functions/Latex_Function.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,8 +145,8 @@ def is_float(s):
# <-------------- download arxiv source file ------------->

def fix_url_and_download():
for url_tar in [url_.replace('/abs/', '/e-print/'), url_.replace('/abs/', '/src/')]:
# for url_tar in [url_.replace('/abs/', '/src/'), url_.replace('/abs/', '/e-print/')]:
# for url_tar in [url_.replace('/abs/', '/e-print/'), url_.replace('/abs/', '/src/')]:
for url_tar in [url_.replace('/abs/', '/src/'), url_.replace('/abs/', '/e-print/')]:
proxies = get_conf('proxies')
r = requests.get(url_tar, proxies=proxies)
if r.status_code == 200:
Expand Down

0 comments on commit c83bf21

Please sign in to comment.