python requests link headers
There is already a way provided by requests to access links header response.links It returns the dictionary of links header value which can easily parsed further using response.links[‘next’][‘url’] to get the required values.