| 1 |
""" |
| 2 |
Fetch RSS-Feeds http://spectrum.ieee.org |
| 3 |
""" |
| 4 |
|
| 5 |
from calibre.web.feeds.news import BasicNewsRecipe |
| 6 |
|
| 7 |
|
| 8 |
class IEEESpectrumOnline(BasicNewsRecipe): |
| 9 |
title = 'IEEE Spectrum Online' |
| 10 |
description = 'All the articles and blog posts from IEEE Spectrum online. This is not the magazine.' |
| 11 |
publisher = 'IEEE.org' |
| 12 |
__author__ = 'Armin Geller' |
| 13 |
category = 'news, electronics, IT, computer science' |
| 14 |
# Version: 1.0 AGe 2014-07-31 |
| 15 |
# Version: 1.1 AGe 2019-02-18 |
| 16 |
# Version: 1.2 AGe 2021-05-03 |
| 17 |
language = 'en' |
| 18 |
encoding = 'utf-8' |
| 19 |
oldest_article = 7 |
| 20 |
max_articles_per_feed = 100 |
| 21 |
remove_empty_feeds = True |
| 22 |
|
| 23 |
feeds = [ |
| 24 |
('IEEE Spectrum Recent Content', 'https://spectrum.ieee.org/rss/fulltext'), |
| 25 |
('Spectrum videos', 'https://spectrum.ieee.org/rss/videos'), |
| 26 |
('Blog: Automaton', 'https://spectrum.ieee.org/rss/blog/automaton/fulltext'), |
| 27 |
('Blog: Energywise', 'https://spectrum.ieee.org/rss/blog/energywise/fulltext'), |
| 28 |
('Blog: Nanoclast', 'https://spectrum.ieee.org/rss/blog/nanoclast/fulltext'), |
| 29 |
('Blog: Tech Talk', 'https://spectrum.ieee.org/rss/blog/tech-talk/fulltext'), |
| 30 |
('Blog: The Institute', 'https://spectrum.ieee.org/rss/the-institute/fulltext'), |
| 31 |
('Blog: Cars That Think', 'https://spectrum.ieee.org/rss/blog/cars-that-think/fulltext'), |
| 32 |
('Blog: Human OS', 'https://spectrum.ieee.org/rss/blog/the-human-os/fulltext'), |
| 33 |
('Blog: Risk Factor', 'https://spectrum.ieee.org/rss/blog/riskfactor/fulltext'), |
| 34 |
('Blog: View From the Valley', 'https://spectrum.ieee.org/rss/blog/view-from-the-valley/fulltext'), |
| 35 |
('Topic: Aerospace', 'https://spectrum.ieee.org/rss/blog/automaton/fulltext'), |
| 36 |
('Topic: Biomedical', 'https://spectrum.ieee.org/rss/biomedical/fulltext'), |
| 37 |
('Topic: Energy', 'https://spectrum.ieee.org/rss/energy/fulltext'), |
| 38 |
('Topic: Geek Life', 'https://spectrum.ieee.org/rss/at-work/fulltext'), |
| 39 |
('Topic: History', 'https://spectrum.ieee.org/rss/tech-history/fulltext'), |
| 40 |
('Topic: News From Around IEEE', 'https://spectrum.ieee.org/rss/blog/news-from-around-ieee/fulltext'), |
| 41 |
('Topic: Robotics', 'https://spectrum.ieee.org/rss/robotics/fulltext'), |
| 42 |
('Topic: Telecom', 'https://spectrum.ieee.org/rss/telecom/fulltext'), |
| 43 |
('Topic: IEEE COVID-19 News & Resources', 'https://spectrum.ieee.org/rss/the-institute/ieee-covid19-resources'), |
| 44 |
('Topic: At Work', 'https://spectrum.ieee.org/rss/at-work/fulltext'), |
| 45 |
('Topic: Computing', 'https://spectrum.ieee.org/rss/computing/fulltext'), |
| 46 |
('Topic: Gadgets', 'https://spectrum.ieee.org/rss/consumer-electronics/fulltext'), |
| 47 |
('Topic: Green Tech', 'https://spectrum.ieee.org/rss/green-tech/fulltext'), |
| 48 |
('Topic: Semiconductors', 'https://spectrum.ieee.org/rss/semiconductors/fulltext'), |
| 49 |
('Topic: Transportation', 'https://spectrum.ieee.org/rss/transportation/fulltext'), |
| 50 |
('Topic: Radio Spectrum Podcasts- NEW', 'https://feeds.transistor.fm/radiospectrum'), |
| 51 |
] |
| 52 |
|
| 53 |
# Add 'https://spectrum.ieee.org' in front of image url for download images |
| 54 |
|
| 55 |
def image_url_processor(cls, baseurl, iurl): |
| 56 |
if iurl: |
| 57 |
return 'https://spectrum.ieee.org' + iurl |