mirror of
				https://github.com/jasm1nii/xml-feed-generator.git
				synced 2025-11-04 00:58:34 +00:00 
			
		
		
		
	xml-feed-generator
an RSS/atom feed generator for my personal site 🐱
disclaimer
this script is not meant to be used as is.
expect to do a lot of modification to fit your needs, as this was created specifically for my site structure and blog markup.
how it basically works
- match files in a specificied directory.
 - load the DOM of each file.
 - parse values retrieved from the following strings/HTML elements, as children of a feed 
<entry>:<h2>as<title>- the 
datetimeattribute 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/entryas<id>/<link>
 - output all of the above in a new file (named 
articles.xml). 
usage
configure a cron job on your server to run this script automatically every now and then, and voila~
reference
feel free to check out the resulting file that i've generated.
Description
				
					Languages
				
				
								
								
									PHP
								
								100%