Skip to content

Commit 79a6dbc

Browse files
committed
better aussie news
1 parent 6abf045 commit 79a6dbc

3 files changed

Lines changed: 34 additions & 12 deletions

File tree

README.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,22 @@ Website for https://fabtab.netlify.app/
55

66
All you need to start is in the __tools__ directory
77

8+
## Building
9+
10+
Install StaticJinja ```pip install staticjinja``` or
11+
```
12+
sudo pacman -S python-pip
13+
sudo pacman -S python-jinja
14+
pip install staticjinja --break-system-packages
15+
```
16+
17+
run build.py
18+
19+
## Handy Links
20+
https://rss.feedspot.com/australian_news_rss_feeds/
21+
22+
https://rss.feedspot.com/israel_news_rss_feeds/
23+
24+
25+
26+

build.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
#!/usr/bin/env python3
22
# https://staticjinja.readthedocs.io/en/latest/user/advanced.html
33

4+
import sys
5+
print(sys.executable)
6+
47
from staticjinja import Site
58
from jinja2 import Environment, FileSystemLoader
69
#import logging
@@ -43,4 +46,4 @@ def is_static(self, filename):
4346
site = MySite(environment=environment, outpath="public", searchpath=searchpath, encoding='utf8')#, logger=logger)
4447

4548
# enable automatic reloading
46-
site.render(use_reloader=False) #True)
49+
site.render(use_reloader=False) #True)

data/categories.json

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -34,18 +34,18 @@
3434

3535
"news" : [
3636
{
37-
"id": "theguardian",
38-
"title": "The Guardian",
39-
"rss_link": "https://www.theguardian.com/au/rss",
40-
"website_link": "https://www.theguardian.com/au",
41-
"favicon": ""
37+
"id": "abcaustralia",
38+
"title": "ABC Australia",
39+
"rss_link": "https://www.abc.net.au/news/feed/2942460/rss.xml",
40+
"website_link": "https://www.abc.net.au/news",
41+
"favicon": "https://www.abc.net.au/news-assets/favicon-32x32.png"
4242
},
4343
{
44-
"id": "timesofisrael",
45-
"title": "Times of Israel",
46-
"rss_link": "http://www.timesofisrael.com/feed/",
47-
"website_link": "http://www.timesofisrael.com/",
48-
"favicon": "http://cdn.timesofisrael.com/images/favicon.ico"
44+
"id": "thejerusalempost",
45+
"title": "The Jerusalem Post",
46+
"rss_link": "https://www.jpost.com/Rss/RssFeedsFrontPage.aspx",
47+
"website_link": "https://www.jpost.com/",
48+
"favicon": "https://images.jpost.com/image/upload/f_auto,fl_lossy/Icons/PNG/jp-favicon-32.png"
4949
},
5050
{
5151
"id": "googlenews",
@@ -59,7 +59,7 @@
5959
"title": "BBC World News",
6060
"rss_link": "http://feeds.bbci.co.uk/news/world/rss.xml",
6161
"website_link": "https://www.bbc.com/news/world",
62-
"favicon": ""
62+
"favicon": "https://static.files.bbci.co.uk/bbcdotcom/web/20250522-140200-09101d307-web-2.22.2-1/favicon-32x32.png"
6363
}
6464
]
6565
}

0 commit comments

Comments
 (0)