Ok, mission accomplished methinks:
>>> x = re.compile("[\\?&](seller|item|hr)=([^&#]*)")
>>> x.findall(url)
[('item', '290277158797'), ('seller', 'la-wheel-and-tire'), ('hr', 'http://shop.ebay.com/?_from=R40')]
>>> x = re.compile("[\\?&](seller|item|hr)=([^&#]*)")
>>> x.findall(url)
[('item', '290277158797'), ('seller', 'la-wheel-and-tire'), ('hr', 'http://shop.ebay.com/?_from=R40')]
No comments yet.