From a05c343bc4eb8017c106e8a356fe502d08796be7 Mon Sep 17 00:00:00 2001 From: alexwholland Date: Thu, 4 May 2023 23:22:02 +0000 Subject: [PATCH] Added Buzzmeaties old code --- scraper/templates/scraper/result.html | 21 ++++++++++++++++++--- scraper/views.py | 1 - 2 files changed, 18 insertions(+), 4 deletions(-) diff --git a/scraper/templates/scraper/result.html b/scraper/templates/scraper/result.html index 36c747a..740ae48 100644 --- a/scraper/templates/scraper/result.html +++ b/scraper/templates/scraper/result.html @@ -75,14 +75,29 @@ Listed {{ days }} days and {{ hours }} hours ago, for ${{ price }} {{ currency }} {% endif %} -


{{ city }}
{{ category }}
{{ condition }}

-

{{ description|safe }}

+

+
+ {{ city }} +
+ {{ category }} +
+ {% if condition != "New" %} + {{ condition }}* + {% else %} + {{ condition }} + {% endif %} +

+ +
+

{{ description }}

+
Seller
+
-

Google Shopping Price History

+

Price Trends

diff --git a/scraper/views.py b/scraper/views.py index 2e8875d..8218aee 100644 --- a/scraper/views.py +++ b/scraper/views.py @@ -36,7 +36,6 @@ class Index(View): image = facebook_instance.get_listing_image() days, hours = facebook_instance.get_listing_date() description = facebook_instance.get_listing_description() - description = description.replace("\n", "
") title = facebook_instance.get_listing_title() condition = facebook_instance.get_listing_condition() category = facebook_instance.get_listing_category()