I know the title doesn't make much sense, but I didnt know how to explain my problem.
Anywho, I've opened a page's source in URLLIB starturlsource = starturlopen.read() string.find(starturlsource, '<a href="/profile.php?id=') And I used string.find to find a specific area in the page's source. I want to store what comes after ?id= in a variable. Can someone help me with this? I dont want to do any html parsing.
well using str.find, this would be a way. I emphasize the "a" because when parsing html normally BeautifulSoup or lxml.html or some other variant would be better equipt to handle parsing html then str.find. But to give you an example: