def main(): annonce_list = parse_expl.parse_html_search_result(open('explorimmo_2.html').read()) print 'data parsed, generating' html = make_html.make_result_list_html(annonce_list) f = open('res.html', 'wb') f.write(html) f.close()
def index(self, i): print 'i', [i] url = url_builder.build_url(int(i)) search_html = urllib.urlopen(url) an_list = parse_expl.parse_html_search_result(search_html) html = make_html.make_result_list_html(an_list) return html return "Hello world!"
def produce_html(self): self.annonce_list = parse_expl.parse_html_search_result(open('explorimmo_2.html').read()) html = make_html.make_result_list_html(self.annonce_list) print 'html', html