title: How to cut filename from URL?
body: <p>I have a lot of links like this <code>http://example.com/2013/1520/i2013i1520p100049.html</code> or <code>http://example.com/2013/89/i2013i89p60003.html</code>.</p>
  
  <p>I need to save the HTML file in the folder <code>1520</code> as <code>i2013i1520p100049.html</code> and the file in the folder "89" as <code>i2013i89p60003.html</code>, respectively.</p>
  
  <p>I could to cut string but others have another length.</p>
  
  <p>P.S. I'm using Python.</p>