How can I extract whatever follows the last slash in a URL in Python? For example, these URLs should return the following:
URL: http://www.test.com/TEST1 ret
Split the url and pop the last element url.split('/').pop()
url.split('/').pop()