>From http://wiki.python.org/moin/HowTo/Sorting#Sortingbykeys, using the
>Decorate-Sort-Undecorate (aka Schwartzian transform) idiom:
#!/usr/bin/env python
items = ['apple', 'car', 'town', 'phone']
values = [5, 2, 7, 1]
zipped=zip(values,items)
zipped.sort(reverse=True)
values_sorted,items_sorte
By putting "shirt" into the web form and clicking the submit button, I find the
URL is this:
http://oldnavy.gap.com/browse/search.do?searchText=shirt&searchDivName=Women&submit.x=0&submit.y=0
You can use the usual urllib methods to download this url.
--
http://mail.python.org/mailman/listinfo/p