diff --git a/graham.py b/graham.py index e5b9379..5ba379d 100755 --- a/graham.py +++ b/graham.py @@ -57,6 +57,8 @@ def update_links(match): for entry in reversed(rss.entries): URL = entry["link"] + if "http://www.paulgraham.com/https://" in URL: + URL = URL.replace("http://www.paulgraham.com/https://", "https://") TITLE = entry["title"] try: @@ -94,8 +96,6 @@ def update_links(match): csvwriter = csv.DictWriter(f, fieldnames=fieldnames) csvwriter.writeheader() - DATE = find_date(entry["link"]) - line = [ART_NO, TITLE, DATE, URL] csvwriter.writerow(line)