Python extracts file names from URL addresses

From , 5 Years ago, written in Python, viewed 233 times.
URL https://pastebin.vip/view/2711ab32
  1. import os
  2. url = 'http://www.sharejs.com/images/logo.gif'
  3. filename = os.path.basename(url)
  4. print(filename)
  5.  
  6.  

Reply to "Python extracts file names from URL addresses"

Here you can reply to the paste above

captcha

https://burned.cc - Burn After Reading Website