Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions resce.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
# This file is part of rescepy.
#

import argparse,json,os,re,shutil,socket,sys,urllib,zlib
import argparse,json,os,re,shutil,socket,sys,urllib,urllib2,zlib

from rescepy.cfv import CFV
from rescepy.srr import SRR
Expand Down Expand Up @@ -427,7 +427,7 @@ def srrdbget(dirname, srrdir):
sys.stdout.flush()
try:
socket.setdefaulttimeout(30)
urllib.urlretrieve('http://www.srrdb.com/download/srr/%s' % (dirname), srrfile)
urllib.urlretrieve('https://www.srrdb.com/download/srr/%s' % (dirname), srrfile)
except:
if len(str(sys.exc_info()[1])) > 0:
print sys.exc_info()[1]
Expand Down Expand Up @@ -459,7 +459,7 @@ def srrdbidentify(crc):
sys.stdout.flush()
try:
socket.setdefaulttimeout(30)
response = json.load(urllib.urlopen('http://www.srrdb.com/api/search/archive-crc:%s' % (crc)))
response = json.load(urllib2.urlopen('https://www.srrdb.com/api/search/archive-crc:%s' % (crc)))
except:
if len(str(sys.exc_info()[1])) > 0:
print sys.exc_info()[1]
Expand Down