I want to read specific bytes from a remote file using a python module. I am using urllib2. Specific bytes in the sense bytes in the form of Offset
,Size
. I know we can read X number of bytes from a remote file using urlopen(link).read(X)
. Is there any way so that I can read data which starts from Offset
of length Size
.?
def readSpecificBytes(link,Offset,size):
# code to be written