an atom (RSS) feed generator written in PHP
Go to file
Jasmine Amalia 2013c4edfe
Update README.md
2023-10-17 21:16:33 +07:00
LICENSE Initial commit 2023-10-17 20:58:33 +07:00
README.md Update README.md 2023-10-17 21:16:33 +07:00
feed_generator.php Add files via upload 2023-10-17 21:13:20 +07:00

README.md

xml-feed-generator

an RSS/atom feed generator for my personal site 🐱


the basic logic of this PHP script:

  1. matches files in a specificied directory
  2. parses values retrieved from the following strings/HTML elements, as children of a feed <entry>:
    • <h2> as <title>
    • the datetime attribute of <time> as <updated>
    • <element class="p-summary"> as <summary>
    • <element class="e-content"> (or <element class="entry" for older markup) as <content>
    • /path/to/blog/entry as <id>/<link>
  3. outputs all of the above to articles.xml in another directory.

for reference, you can check out the resulting file that i've generated myself.

feel free to modify according to your needs!