View Single Post
Old 02-03-2023, 09:48 PM   #2
fengli
Connoisseur
fengli began at the beginning.
 
Posts: 97
Karma: 10
Join Date: Aug 2022
Device: PC
For example:




#!/usr/bin/env python
# vim:fileencoding=utf-8
from calibre.web.feeds.news import BasicNewsRecipe

class AdvancedUserRecipe1675479003(BasicNewsRecipe):
title = 'Google新闻-科技巨头Eng'
oldest_article = 1
max_articles_per_feed = 100
auto_cleanup = True

feeds = [
('"ASML" - Google News', 'https://news.google.com/news/rss/search?q=ASML&hl=en'),
('"twitter" - Google News', 'https://news.google.com/news/rss/search?q=twitter&hl=en'),
('"intel" - Google News', 'https://news.google.com/news/rss/search?q=intel&hl=en'),
('tencent - Google News', 'http://news.google.com/news?hl=en&gl=us&q=tencent&um=1&ie=UTF-8&output=rss'),
('amazon - Google News', 'http://news.google.com/news?hl=en&gl=us&q=amazon&um=1&ie=UTF-8&output=rss'),
('twitter - Google News', 'https://news.google.com/news/rss/search/section/q/twitter/twitter?hl=en&gl=US'),
('Ubuntu - Google News', 'http://news.google.com/news?hl=en&gl=us&q=Ubuntu&um=1&ie=UTF-8&output=rss'),
('TSMC - Google News', 'https://news.google.com/news/rss/search/section/q/TSMC/TSMC?hl=en&gl=US'),
('Google - Google News', 'https://news.google.com/news/rss/search/section/q/Google/Google?hl=en&gl=US'),
('alibaba - Google News', 'https://news.google.com/news/rss/search/section/q/alibaba/alibaba?hl=en&gl=US'),
('Apple - Google News', 'https://news.google.com/news/rss/search/section/q/Apple/Apple?hl=en&gl=US'),
('"tiktok" - Google News', 'https://news.google.com/news/rss/search/section/q/tiktok/tiktok?hl=en&gl=US&ned=us'),
('huawei - Google News', 'https://news.google.com/news/rss/search/section/q/huawei/huawei?hl=en&gl=US'),
('Amazon - Google News', 'https://news.google.com/news/rss/search/section/q/Amazon/Amazon?hl=en&gl=US'),
('space x - Google News', 'http://news.google.com/news?hl=en&gl=us&q=space%20x&um=1&ie=UTF-8&output=rss'),
('"AMD" - Google News', 'https://news.google.com/news/rss/search?q=AMD&hl=en'),
('"Nvidia" - Google News', 'https://news.google.com/news/rss/search?q=Nvidia&hl=en'),
('"STMicroelectronics" - Google News', 'https://news.google.com/news/rss/search?q=STMicroelectronics&hl=en'),
('"Broadcom" - Google News', 'https://news.google.com/news/rss/search?q=Broadcom&hl=en'),
('qualcomm - Google News', 'https://news.google.com/news/rss/search/section/q/qualcomm/qualcomm?hl=en&gl=US'),
('"MediaTek" - Google News', 'https://news.google.com/news/rss/search?q=MediaTek&hl=en'),
('"ZTE" - Google News', 'https://news.google.com/news/rss/search?q=ZTE&hl=en'),
('"huawei" - Google News', 'https://news.google.com/news/rss/search?q=huawei&hl=en'),
('"TSMC" - Google News', 'https://news.google.com/news/rss/search?q=TSMC&hl=en'),
('"Samsung" - Google News', 'https://news.google.com/news/rss/search?q=Samsung&&hl=en-US&gl=US&ceid=US:en'),
('"meta" - Google News', 'https://news.google.com/news/rss/search?q=meta&hl=en'),
('google新闻', 'https://news.google.com/news/rss/headlines/section/topic/TECHNOLOGY?ned=us&hl=en&gl=US'),
('microsoft', 'https://news.google.com/news/rss/search/section/q/microsoft/microsoft?hl=en&gl=US&ned=us'),
('amazone', 'https://news.google.com/news/rss/search/section/q/amazone/amazone?hl=en&gl=US&ned=us'),
('Google', 'https://news.google.com/news/rss/search/section/q/Google/Google?hl=en&gl=US&ned=us'),
('facebook', 'https://news.google.com/news/rss/search/section/q/facebook/facebook?hl=en&gl=US&ned=us'),
('apple', 'https://news.google.com/news/rss/search/section/q/apple/apple?hl=en&gl=US&ned=us'),
]

Last edited by fengli; 02-03-2023 at 09:52 PM.
fengli is offline   Reply With Quote