rss-bridge icon indicating copy to clipboard operation
rss-bridge copied to clipboard

[ABC News Bridge] Support National Top Stories

Open alexvong243f opened this issue 2 years ago • 4 comments

Is your feature request related to a problem? Please describe. Right now ABC News Bridge only supports Regional Top Stories (ACT, NSW, NT, QLD, SA, TAS, VIC, WA), it would be great if it also supports National Top Stories https://www.abc.net.au/news

Describe the solution you'd like Add a new option for ABC News Bridge to scrape National Top Stories from https://www.abc.net.au/news and generate rss feed from it.

Describe alternatives you've considered ABC News (Australia) has a twitter account for National Top Stories. In theory, we can simply use the twitter bridge and be done with it. In practice, twitter seems to keep breaking 3rd party programs, so perhaps it's more reliable to scrape directly from the website.

Additional context None at the moment.

alexvong243f avatar Jul 04 '23 07:07 alexvong243f

well here is one idea:

diff --git a/bridges/ABCNewsBridge.php b/bridges/ABCNewsBridge.php
index c00fed1c..7e6f5c09 100644
--- a/bridges/ABCNewsBridge.php
+++ b/bridges/ABCNewsBridge.php
@@ -14,6 +14,7 @@ class ABCNewsBridge extends BridgeAbstract
                 'name' => 'Region',
                 'title' => 'Choose state',
                 'values' => [
+                    'National Top Stories' => '',
                     'ACT' => 'act',
                     'NSW' => 'nsw',
                     'NT' => 'nt',

think i found a better data extraction method:

  • https://www.abc.net.au/news-web/api/loader/newshometopstories?edition=tas
  • https://www.abc.net.au/news-web/api/loader/newshometopstories?edition=national

ping maintainer @yue-dongchen

dvikan avatar Jul 04 '23 08:07 dvikan

How did you discover the API? If we can access all others topics via the API it would be good to replace this bridge with a pure-API implementation.

yue-dongchen avatar Jul 04 '23 12:07 yue-dongchen

there is a top-most <select> on the frontpage (https://www.abc.net.au/news) which triggers an ajax call. thats how i found it

dvikan avatar Jul 04 '23 12:07 dvikan

I've gone with @dvikan's suggestion and put in "justin" which seems to give me a pretty good feed of the latest National stories. Would love a way to get the "Top Stories" but I can't find one on the ABC Homepage.

Thanks for this great Bridge though (from an Aussie living in NZ)

tjharman avatar Oct 30 '23 18:10 tjharman