Updated Redis cache key environment variable.
Browse files
functions/feed_extraction.py
CHANGED
@@ -2,7 +2,6 @@
|
|
2 |
|
3 |
import os
|
4 |
import re
|
5 |
-
import json
|
6 |
import logging
|
7 |
import urllib.request
|
8 |
from urllib.error import HTTPError, URLError
|
@@ -19,7 +18,7 @@ RSS_EXTENSIONS = ['xml', 'rss', 'atom']
|
|
19 |
COMMON_EXTENSIONS = ['com', 'net', 'org', 'edu', 'gov', 'co', 'us']
|
20 |
REDIS = Redis(
|
21 |
url='https://sensible-midge-19304.upstash.io',
|
22 |
-
token=os.environ['
|
23 |
)
|
24 |
|
25 |
def find_feed_uri(website: str) -> str:
|
|
|
2 |
|
3 |
import os
|
4 |
import re
|
|
|
5 |
import logging
|
6 |
import urllib.request
|
7 |
from urllib.error import HTTPError, URLError
|
|
|
18 |
COMMON_EXTENSIONS = ['com', 'net', 'org', 'edu', 'gov', 'co', 'us']
|
19 |
REDIS = Redis(
|
20 |
url='https://sensible-midge-19304.upstash.io',
|
21 |
+
token=os.environ['UPSTASH_REDIS_KEY']
|
22 |
)
|
23 |
|
24 |
def find_feed_uri(website: str) -> str:
|