RSS-Bridge / rss-bridge

The RSS feed for websites missing it
https://rss-bridge.org/bridge01/
The Unlicense
7.05k stars 1.02k forks source link

[ABC News Bridge] Support National Top Stories #3483

Open alexvong243f opened 1 year ago

alexvong243f commented 1 year ago

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.

dvikan commented 1 year ago

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:

ping maintainer @yue-dongchen

yue-dongchen commented 1 year ago

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.

dvikan commented 1 year ago

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

tjharman commented 8 months ago

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)