get text from url python last slash code example
Example: get text from url python last slash
#From stacoverflow:
url = 'http://www.test.com/TEST1'
last = url.rsplit('/', 1)[-1]
print(last) #TEST1
#From stacoverflow:
url = 'http://www.test.com/TEST1'
last = url.rsplit('/', 1)[-1]
print(last) #TEST1