Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

get text from url python last slash

#From stacoverflow:
url = 'http://www.test.com/TEST1'
last = url.rsplit('/', 1)[-1]
print(last) #TEST1
Comment

PREVIOUS NEXT
Code Example
Python :: djangodebug toolbar not showing 
Python :: python iterate object 
Python :: pandas show all dataframe 
Python :: pandas sort columns by name 
Python :: python float to fraction 
Python :: python mouse click 
Python :: increase pie chart size python 
Python :: pandas columns add prefix 
Python :: python bisection method 
Python :: python blackjack 
Python :: python write a list to a file line by line 
Python :: python input. yes or no 
Python :: find sum of values in a column that corresponds to unique vallues in another coulmn python 
Python :: asyncio wirte to text python 
Python :: plot_histogram qiskit pycharm 
Python :: remove every file that ends with extension in python 
Python :: python truncate string to length 
Python :: how to move mouse with pyautogui 
Python :: python dict exclude keys 
Python :: copy file in python3 
Python :: how to leave some parameters in python and let the value be anything 
Python :: python find second occurrence in string 
Python :: python hash string 
Python :: random name generator in python 
Python :: python logger format time 
Python :: python seaborn violin plot fit data better 
Python :: df invert sort index 
Python :: python sqlalchemy engine 
Python :: how to type a dict in python 
Python :: pandas create dataframe of ones 
ADD CONTENT
Topic
Content
Source link
Name
8+5 =