#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Author: Hendrik Schutter, mail@hendrikschutter.com Date of creation: 2022/07/20 Date of last modification: 2022/07/20 """ def html_comparison_head(): return ''' eBay competitor price compare ''' def html_comparison_navigation(counter): back_link = str((str(counter-1)+".html") if ((counter-1) > 0) else "#") current = str(counter) current_link = str(counter)+".html" next_link = str((str(counter+1)+".html")) #TODO: test if last one and replace with '#' return '''

← Back

Compare #''' + current + '''

→ Next

''' def html_comparison_seller_listing(seller_listing): return '''
image not found

''' + seller_listing['title'] + '''

''' + str(seller_listing['price']) + ''' €

''' def html_comparison_competitor_list_header(): return '''

Competitor results:

''' def html_comparison_competitor_listing(competitor_listing, competitor_listing_counter): return ''' ''' def html_comparison_trailer(): return '''
''' def html_startpage_head(): return ''' eBay competitor price compare ''' def html_startpage_info(seller_listings_count, cheaper_listings_count, compare_time, export_time, date): return '''

eBay competitor price compare

Seller info

Number of seller listings: ''' + str(seller_listings_count) + '''

Possibly cheaper listings: ''' + str(cheaper_listings_count) + '''

Runtime info

Compare time needed: ''' + str(compare_time) + '''

Export time needed: ''' + str(export_time) + '''

Date of creation: ''' + str(date) + '''

''' def html_startpage_trailer(): return '''