Commit Graph

9 Commits

Author SHA1 Message Date
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 0025c458a4 Use Golang log methods rather than a lua log library 2024-01-02 09:11:14 -05:00
Christopher Williams 9fe6a16f47 Add looking at the database to get previous scrapes
- We can now grab previous results from the database to serve back to
  the request
- The rss feed items are also now sorted based on their pubDate
- Godot's script is now fully function and scrapes only when needed
- Other scripts still need some work to make it so that they are
  utilizing the database
- Duplicate entries in the database aren't checked for just yet, this
  needs to be done or else if there are any mistakes in lua, the
  databases becomes a mess
- Add sorter file to handle the pubDate sorting
2023-12-29 17:34:56 -05:00
Christopher Williams 1177d988b0 Add more functionality to the 9to5mac script 2023-12-29 13:08:53 -05:00
Christopher Williams 57c8f25eb3 Add live version of 9to5mac
- Add todo items to opengoal file
- Add the beginnings of a lua definitions file so that the lsp will stop
  complaining
2023-12-28 21:52:56 -05:00
Christopher Williams a57683dfe5 Add working local version of 9to5mac
- Able to generate a working feed with this
- Also uses the new remove function to delete divs
2023-12-28 20:58:28 -05:00