|
Posted by lperkov |
|
|
hello!
I'm doing web application in django in which I have to make search option that will find on other web page some product(for example) and that product will have to been seen on my page.. now I don't know where to start with programming.. I know I must parse that other page but I don't have idea how to do that.. can someone help me with understanding what I have to do exactly?! Thanks! |
|
|
Posted by Conley Owens ![]() |
|
|
I use urllib2 and HTMLparser
http://docs.python.org/library/htmlparser.html http://docs.python.org/library/urllib2.html |
|
|
Posted by zeinab |
|
chapter 7 in django book
there is an example about getting search query from the URL maybe it's useful for you the code is here: def search(request): if 'q' in request.GET: message = 'You searched for: %r' % request.GET['q'] else: message = 'You submitted an empty form.' return HttpResponse(message) |



