From: Daniel Fetchinson on 25 Jun 2010 06:29 > 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?! First fetch the page using urllib2 [1] then parse it with elementtree [2] or beautiful soup [3] or something else [4]. Once you filtered out the data you want you can insert it where ever you need to insert it. Be sure to read this also [5]. HTH, Daniel [1] http://docs.python.org/library/urllib2.html [2] http://docs.python.org/library/xml.etree.elementtree.html [3] http://www.crummy.com/software/BeautifulSoup/ [4] http://wiki.python.org/moin/PythonXml [5] http://catb.org/esr/faqs/smart-questions.html -- Psss, psss, put it down! - http://www.cafepress.com/putitdown
|
Pages: 1 Prev: django csrf Next: How to get the date format from the users locale? |