View Single Post
Old Nov 18th, 2006, 10:16 PM   #5
nytrokiss
Newbie
 
Join Date: Oct 2006
Posts: 23
Rep Power: 0 nytrokiss is on a distinguished road
Quote:
Originally Posted by Kaja Fumei View Post
The regex is not supposed to match that URL. The regex only matches if "pg" is set by the URL. That URL doesn't do this but it would match this one: http://www.goldwatches.com/watches.asp?Brand=11&pg=0

If you want "pg" to be optional, change line 3 to:
next_site_pages = findall(r'\?Brand=\d+(\&pg=\d+)?',site)

I am not trying to match that url i am trying to pull a list out of it and now i will post screen shots!
Attached Images
File Type: jpg Problem_with_python1.jpg (61.7 KB, 49 views)
nytrokiss is offline   Reply With Quote