The function just overwrites the list in my function is there anyway i can
fix this!
def find_all_items(site):
   site = urllib.urlopen(site).read()
   all_items = re.findall(r'watch\.asp\?\w+\=\w*\&\w*\=\w+',site)
   next_page = re.findall(r'Watches\.asp\?\w+\=[0-9]+\&pg\=\w+',site)
   try:
       find_all_items(urllib.basejoin("<some url>",next_page[0]))
   except IndexError:
       pass
   return remove_dups(all_items) # ,<---- this removes all the duplicate
items

--
http://www.goldwatches.com
_______________________________________________
Python-win32 mailing list
Python-win32@python.org
http://mail.python.org/mailman/listinfo/python-win32

Reply via email to