From a8abdb2322a3e1d080daa412a643d515a386ad86 Mon Sep 17 00:00:00 2001 From: Bryan Bishop Date: Sat, 9 Feb 2013 08:03:29 -0600 Subject: [PATCH] support both jap.aip.org and apl.aip.org --- modules/papers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/papers.py b/modules/papers.py index 8bc85b3..dd2a865 100644 --- a/modules/papers.py +++ b/modules/papers.py @@ -200,7 +200,7 @@ def download_url(url): else: content = new_content response = new_response - elif "apl.aip.org" in url: + elif ".aip.org/" in url: try: title = tree.xpath("//title/text()")[0].split(" | ")[0] pdf_url = [link for link in tree.xpath("//a/@href") if "getpdf" in link][0]