From c87bd8fdaa1ed0af1f22902f8b2bfc4e7a6b1e8e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Gl=C3=BCpker?= Date: Thu, 25 Nov 2021 14:00:54 +0100 Subject: Fix imports and format --- netto.py | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'netto.py') diff --git a/netto.py b/netto.py index 3f1beb2..dde8d32 100755 --- a/netto.py +++ b/netto.py @@ -1,9 +1,10 @@ #!/usr/bin/env python3 -from urllib.request import urlopen, Request +import sys from datetime import datetime +from urllib.request import Request, urlopen + from bs4 import BeautifulSoup -import sys def netto(store_id): @@ -21,11 +22,11 @@ def netto(store_id): title = url[url.find(year) : url.find(year) + 7] return { - title: "Netto Angebote für " + store_id, - url: "https://www.netto-online.de/ueber-netto/Online-Prospekte.chtm/" + "title": "Netto Angebote für " + store_id, + "url": "https://www.netto-online.de/ueber-netto/Online-Prospekte.chtm/" + store_id, - description: "PDF der neuen Netto Angebote für den Laden um die Ecke.", - content: [ + "description": "PDF der neuen Netto Angebote für den Laden um die Ecke.", + "content": [ { "title": "Angebote für " + title, "url": url, -- cgit v1.2.3