I am working with a huge list of URL\'s. Just a quick question I have trying to slice a part of the URL out, see below:
http://www.domainname.com/page?CONTEN
I figured it out below is what I needed to do:
url = "http://www.domainname.com/page?CONTENT_ITEM_ID=1234¶m2¶m3" url = url[: url.find("&")] print url 'http://www.domainname.com/page?CONTENT_ITEM_ID=1234'