amazon_rss.py V1
This commit is contained in:
@@ -0,0 +1,15 @@
|
|||||||
|
# collectors/amazon_rss.py
|
||||||
|
import feedparser
|
||||||
|
|
||||||
|
def fetch_amazon_deals():
|
||||||
|
url = "https://www.amazon.de/gp/rss/deals" # Beispiel / Alternativ Affiliate Feeds
|
||||||
|
feed = feedparser.parse(url)
|
||||||
|
|
||||||
|
deals = []
|
||||||
|
for entry in feed.entries:
|
||||||
|
deals.append({
|
||||||
|
"title": entry.title,
|
||||||
|
"url": entry.link,
|
||||||
|
"price": None
|
||||||
|
})
|
||||||
|
return deals
|
||||||
Reference in New Issue
Block a user