Skip to content

gitveevo/rssnotify

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

66 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RssNotify

Resources for rssnotify

Popular public RSS News Feeds

CNN Topstories

http://rss.cnn.com/rss/edition.rss


BBC Topstories

https://feeds.bbci.co.uk/news/rss.xml


New York Times World News

https://rss.nytimes.com/services/xml/rss/nyt/World.xml


FoxNews Topstories

https://moxie.foxnews.com/google-publisher/latest.xml


Create your own feed

  1. Create database and use schema.sql for the items table.
	CREATE TABLE `items` (
	  `id` int(11) NOT NULL AUTO_INCREMENT,
	  `guid` varchar(255) NOT NULL DEFAULT '',
	  `title` varchar(255) NOT NULL,
	  `description` text NOT NULL,
	  `link` varchar(255) NOT NULL,
	  `tstamp` datetime DEFAULT NULL,
	  PRIMARY KEY (`id`)
	) ENGINE=InnoDB
  1. Place rssnotify.php on your webserver, and change the database-config.
<?php
	$dbuser = "dbuser"; // Your dbuser
	$dbpass = "dbpass"; // Your db password
	$dbname = "dbname"; // Your database name
	$dbhost = "localhost"; // Your database host
  1. Put in a few test-entries.
  2. Navigate to this file via url in your browser to test it.

RSS Format

If you want to create a feed on your own, please follow the following format

<?xml version="1.0" encoding="UTF-8" ?>
	<rss version="2.0">
		<channel>
			<title>RSS Notifier</title>
			<link>https://rssnotify.app/news.xml</link>
			<description>XML Description</description>
			<language>de-de</language>
			<item>
				<guid isPermaLink="true">unique-id-oooggtooihhhoodsxxcgjdxxddsd</guid>
				<link>https://rssnotify.app/</link>
				<title>Welcome to RssNotify!</title>
				<description>This is the default RSS-Feed of RssNotify. We will keep you up to date here. Have fun!</description>
				<pubDate>Sun, 17 Sep 2023 08:44:42 Z</pubDate>
			</item>
		</channel>
	</rss>
  1. The link tag in item is optional
  2. The guid MUST to be unique and permanent in the feed. If you generate a new unique-id on every request - it will notify you repeatedly.
<?php
	//Best to use a md5 of a unique property of your rss-item. For example the link.
	$uid = "unique-id-".md5($item->link);
  1. Make sure your web-server delivers the xml with xml mime-type.
<?php
	header('Content-Type: text/xml');

About

Resources for rssnotify

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages