# Entrez access points
-einfo_url = 'http://eutils.ncbi.nlm.nih.gov/entrez/eutils/einfo.fcgi'
-esearch_url = 'http://eutils.ncbi.nlm.nih.gov/entrez/eutils/esearch.fcgi'
-efetch_url = 'http://eutils.ncbi.nlm.nih.gov/entrez/eutils/efetch.fcgi'
-elink_url = 'http://eutils.ncbi.nlm.nih.gov/entrez/eutils/elink.fcgi'
+EINFO_URL = 'http://eutils.ncbi.nlm.nih.gov/entrez/eutils/einfo.fcgi'
+ESEARCH_URL = 'http://eutils.ncbi.nlm.nih.gov/entrez/eutils/esearch.fcgi'
+EFETCH_URL = 'http://eutils.ncbi.nlm.nih.gov/entrez/eutils/efetch.fcgi'
+ELINK_URL = 'http://eutils.ncbi.nlm.nih.gov/entrez/eutils/elink.fcgi'
# Entrez-requested tracking information
TOOL = 'entrezpy'
'tool': TOOL,
'email': EMAIL})
- LOG.info("getting einfo from '%s?%s'" % (einfo_url, params))
- f = urllib.urlopen ("%s?%s" % (einfo_url, params))
+ LOG.info("getting einfo from '%s?%s'" % (EINFO_URL, params))
+ f = urllib.urlopen ("%s?%s" % (EINFO_URL, params))
string = f.read()
f.close()
LOG.debug('got:\n%s' % string)
'rettype': rettype,
'sort': sort})
- LOG.info("getting esearch from '%s?%s'" % (esearch_url, params))
- f = urllib.urlopen ("%s?%s" % (esearch_url, params))
+ LOG.info("getting esearch from '%s?%s'" % (ESEARCH_URL, params))
+ f = urllib.urlopen ("%s?%s" % (ESEARCH_URL, params))
string = f.read()
f.close()
LOG.debug('got:\n%s' % string)
'retmode': retmode,
'rettype': rettype})
- LOG.info("getting efetch from '%s?%s'" % (efetch_url, params))
- f = urllib.urlopen ("%s?%s" % (efetch_url, params))
+ LOG.info("getting efetch from '%s?%s'" % (EFETCH_URL, params))
+ f = urllib.urlopen ("%s?%s" % (EFETCH_URL, params))
string = f.read()
f.close()
LOG.debug('got:\n%s' % string)
'datetype': datetype,
'retmode': retmode})
- LOG.info("getting elink from '%s?%s'" % (elink_url, params))
- f = urllib.urlopen ("%s?%s" % (elink_url, params))
+ LOG.info("getting elink from '%s?%s'" % (ELINK_URL, params))
+ f = urllib.urlopen ("%s?%s" % (ELINK_URL, params))
if cmd == 'prlinks' and retmode == 'ref':
# Just get the link, we don't need the provider's webpage HTML.