I have a loop. Everytime the loop runs, a new list is created. I want to add the all these lists together. My code is as follows:
while i < len(symbolslist):
html_text = urllib.urlopen('my-url.com/'+symbolslist[i]).read()
pattern = re.compile('<a target="_blank" href="(.+?)" rel="nofollow"')
applink = re.findall(pattern, htmltext)
applink += applink
i+=1
where applink is a list. However, with the current code I have, it only adds the last two lists together. What am I doing wrong?
Thanks!