shafihuzaib / hfeeds

An easy to use RSS Feed Generator - Open Source Alternative to feed43.com
68 stars 21 forks source link

Run standalone as a script? #10

Open bixfrankonis opened 1 year ago

bixfrankonis commented 1 year ago

Is there a way to run this as a standalone that just generates a pre-determined feed based on a cron schedule?

shafihuzaib commented 1 year ago

Yes I believe you can.

The generated XML file is actually a php file. Running that XML file (irrespective of whether you change the extension or not) as a php script should do the trick.

On Thu, 17 Nov 2022, 8:00 am Bix F., @.***> wrote:

Is there a way to run this as a standalone that just generates a pre-determined feed based on a cron schedule?

— Reply to this email directly, view it on GitHub https://github.com/shafihuzaib/hfeeds/issues/10, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACF5ST4MJWZP255LGBQGVEDWIWKDXANCNFSM6AAAAAASC4BTRQ . You are receiving this because you are subscribed to this thread.Message ID: @.***>

bixfrankonis commented 1 year ago

Okay, yeah. That does work, except somehow the items in the resulting RSS feed aren't rendering any HTML in the item but instead printing out the HTML (and being mostly code ignorant I am not sure how to correct that). It's clearly happening in function file_get_contents_utf8($url). I'll keep trying to wrap my brain around the PHP enough to figure this out. Thanks.

bixfrankonis commented 1 year ago

Solved what was happening there, but as near as I can tell hfeeds isn’t actually checking to see if an item has updated but is simply indicating every item is new whenever the script is run.

shafihuzaib commented 1 year ago

Please share your findings.

hFeeds isn't to (and can't) tell if there is a new content, that is the job of a Feed Aggregator. hFeeds is only expected to help generate RSS Feeds for the sites which don't have one.

On Fri, 18 Nov 2022, 9:05 am Bix F., @.***> wrote:

Solved what was happening there, but as near as I can tell hfeeds isn’t actually checking to see if an item has updated but is simply indicating every item is new whenever the script is run.

— Reply to this email directly, view it on GitHub https://github.com/shafihuzaib/hfeeds/issues/10#issuecomment-1319501036, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACF5ST5PD7TQRFLDHP5XWLTWI32PVANCNFSM6AAAAAASC4BTRQ . You are receiving this because you commented.Message ID: @.***>

bixfrankonis commented 1 year ago

I guess I just assumed, because since this was presented as a Feed43 alternative, it would do this. Feed43 feeds always worked for me out of the box. I can't seem to get this to work in the same way. 🤷

No worries.