Commit Graph

13 Commits

Author SHA1 Message Date
Christopher Williams 2a8789762f Always sync with the live rss feeds if get is called 2024-03-03 09:21:54 -05:00
Christopher Williams da6c5b00ac Fix bug around checking for hours instead of minutes for sync interval 2024-01-04 18:26:30 -05:00
Christopher Williams 0cbe26e14c Add initial config functionality
- Now we are able to load and create a config
2024-01-04 11:48:46 -05:00
Christopher Williams 3664ef28ac Add first rss feed generation
- Now we are able to generate an RSS Feed from multiple posts without
  needing the website to have an original rss feed that we modify
- The first website that we can do it for is opengoal.dev/blog
- However, some values are temporarily hardcoded for right now, the code
  needs to support having RSSItems passed into it so that it can fill in
  all of the values based on actual values rather than "example.com"
- 9to5mac is now using a couple of constants for variables now as well.
  More refactoring to come for this
2024-01-03 20:32:08 -05:00
Christopher Williams e48c26ca50 Fix the merge function
- Do not use the : notation because the first argument will be the table
  when calling the rss functions
- Optimize the table concatenation
- Introduce an rss:limit function that will limit the number of items
  within a list
- Add the "eurogamer" script
2024-01-03 18:26:56 -05:00
Christopher Williams fbd9082f9b Add a few more websites and bind RSSImage
- Add 9to5google and electrek
- Make 9to5mac and godot use the live website and cache the result to the database
2024-01-02 11:24:45 -05:00
Christopher Williams 6f972ef5fe Add RSS Feed merge function
- We are now able to use a native Go function to merge 2 feeds into one
  so that it can be served back to the requester
2024-01-02 09:51:21 -05:00
Christopher Williams 260840f6ae Add rss:get to get a cached feed or not
- First implementation of the rss feed cache system
- Clean up needs to happen with it. It is in need of extracting code to
  functions
- It is functional though and is able to know when to fetch new data or
  just serve the existing data it has
2024-01-01 22:03:58 -05:00
Christopher Williams 4056d0008c Refactor html module to userdata
- There is now an "html" object that can be used to perform html parsing
  functions. Currently there are select, remove and get functions
- Remove has been added to the html tools so that tags can be removed
  from the document
2023-12-28 20:56:36 -05:00
Christopher Williams c9f5891f76 Refactoring of function and struct names 2023-12-27 19:46:07 -05:00
Christopher Williams 38ab153c1a Use the RSS Item struct instead of a generic table 2023-12-27 19:17:54 -05:00
Christopher Williams 0536244bfa First working website!
- Godot's blog now can return the blog posts that are listed in the rss
  feed!
- Currently it does not cache this data so each request will go and
  scrape the data again. This need to be addressed
2023-12-27 14:54:45 -05:00
Christopher Williams 4c4774fe00 Add a get and parse rss feed function 2023-12-26 14:20:44 -05:00