From f5a02f4a1d165443f929ab8eea939688a59193d4 Mon Sep 17 00:00:00 2001 From: lalalaurentiu Date: Sat, 16 Sep 2023 12:11:49 +0300 Subject: [PATCH] adding .gitignore and showing data --- .gitignore | 2 ++ sites/website_scraper_bs4.py | 2 ++ 2 files changed, 4 insertions(+) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 00000000..757ecb33 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +env/ +__pycache__/ \ No newline at end of file diff --git a/sites/website_scraper_bs4.py b/sites/website_scraper_bs4.py index 77ac6c75..972e916e 100644 --- a/sites/website_scraper_bs4.py +++ b/sites/website_scraper_bs4.py @@ -4,6 +4,7 @@ from sites.update_logo import update_logo from math import ceil import uuid +import json class BS4Scraper: @@ -84,3 +85,4 @@ def send_to_viitor(self): api_load = UpdatePeviitorAPI(self.company_name, self.formatted_data) api_load() update_logo(self.company_name, self.logo_url) + print(json.dumps(self.formatted_data, indent=4, sort_keys=True))