Beispiel #1
0
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()
Beispiel #2
0
    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!"
Beispiel #3
0
    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