-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathrobot_report_settings.py
More file actions
59 lines (56 loc) · 3.78 KB
/
robot_report_settings.py
File metadata and controls
59 lines (56 loc) · 3.78 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
from models import RssInfo, SiteConfig
from app_config import RedditFetchConfig, FetchConfig
# No custom fetch config needed initially; add if sites require Selenium.
CONFIG = SiteConfig(
ALL_URLS={
"https://www.therobotreport.com/feed/": RssInfo("therobotreport.webp", "The Robot Report", "https://www.therobotreport.com/"),
"https://robohub.org/feed/": RssInfo("Robohub.webp", "Robohub", "https://robohub.org/"),
"https://newatlas.com/robotics/index.rss": RssInfo("NewAtlas.svg", "New Atlas Robotics", "https://newatlas.com/robotics/"),
"https://www.azorobotics.com/syndication.axd": RssInfo("AZoRobotics.webp", "AZoRobotics", "https://www.azorobotics.com/"),
"https://www.unite.ai/fakefeed": RssInfo("UniteAI.svg", "Unite.AI Robotics", "https://www.unite.ai"),
"https://arxiv.org/rss/cs.RO": RssInfo("arXiv.svg", "arXiv Robotics", "https://arxiv.org/list/cs.RO/recent"),
"https://news.mit.edu/topic/mitrobotics-rss.xml": RssInfo("MIT.svg", "MIT News Robotics", "https://news.mit.edu/topic/robotics"),
"https://spectrum.ieee.org/feeds/topic/robotics.rss": RssInfo("IEEESpectrum.svg", "IEEE Spectrum Robotics", "https://spectrum.ieee.org/topic/robotics/"),
"https://techxplore.com/rss-feed/robotics-news/": RssInfo("TechXplore.svg", "TechXplore Robotics", "https://techxplore.com/robotics-news/"),
"https://www.sciencedaily.com/rss/matter_energy/robotics.xml": RssInfo("ScienceDaily.webp", "ScienceDaily Robotics", "https://www.sciencedaily.com/news/matter_energy/robotics/"),
"https://blogs.nvidia.com/blog/tag/robotics/feed/": RssInfo("NVIDIA.webp", "NVIDIA Robotics", "https://blogs.nvidia.com/blog/tag/robotics/"),
},
SITE_URLS=[
"https://www.therobotreport.com/feed/",
"https://www.azorobotics.com/syndication.axd",
"https://techxplore.com/rss-feed/robotics-news/",
"https://spectrum.ieee.org/feeds/topic/robotics.rss",
"https://robohub.org/feed/",
"https://www.sciencedaily.com/rss/matter_energy/robotics.xml",
"https://www.unite.ai/fakefeed",
"https://blogs.nvidia.com/blog/tag/robotics/feed/",
"https://newatlas.com/robotics/index.rss",
"https://news.mit.edu/topic/mitrobotics-rss.xml",
"https://arxiv.org/rss/cs.RO",
],
USER_AGENT="Robot Report -- https://robotreport.keithcu.com",
URL_IMAGES="https://robotreport.keithcu.com/static/images/",
FAVICON="robotreport192.ico",
LOGO_URL="RobotReportNearspringwithafewsnowflakess.webp",
WEB_DESCRIPTION="Latest robotics news: breakthroughs, trends, and tech for enthusiasts. Hourly updates, no fluff.",
WEB_TITLE="Robot Report | Latest Robotics News",
REPORT_PROMPT="Robotics enthusiasts, programmers, and builders interested in major robotics and automation developments, especially humanoid robots and FOSS (free and open source software) projects. Focus on research breakthroughs, industry news, and robotics tutorials for intro builders. Avoid software-only automation (except for virtual robotics which is an important test and learning environment for real but more expensive robots), quantum computing, or unrelated tech content.",
PATH="/srv/http/robotreport",
SCHEDULE=[8, 12, 16, 20],
DEFAULT_THEME="monokai",
CUSTOM_FETCH_CONFIG={
# Site-specific Selenium config for Unite.AI main page
# Updated to match actual site structure
"unite.ai": FetchConfig(
needs_selenium=True,
needs_tor=False,
post_container="li.mvp-blog-story-wrap",
title_selector="h2",
link_selector=".mvp-blog-story-text a[rel='bookmark']",
link_attr="href",
filter_pattern=None,
use_random_user_agent=False,
published_selector="span.mvp-cd-date",
),
}
)