mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-08-04 10:04:54 +02:00
Refonte du code
This commit is contained in:
parent
3c929e0aa6
commit
927b04dfef
20 changed files with 1137 additions and 475 deletions
31
README.md
31
README.md
|
@ -6,36 +6,31 @@ rss-bridge is a collection of independant php scripts capable of generating ATOM
|
|||
Supported sites/pages
|
||||
===
|
||||
|
||||
* `rss-bridge-flickr-explore.php` : [Latest interesting images](http://www.flickr.com/explore) from Flickr.
|
||||
* `rss-bridge-googlesearch.php` : Most recent results from Google Search. Parameters:
|
||||
* `FlickrExplore` : [Latest interesting images](http://www.flickr.com/explore) from Flickr.
|
||||
* `GoogleSearch` : Most recent results from Google Search. Parameters:
|
||||
* q=keyword : Keyword search.
|
||||
* `rss-bridge-twitter.php` : Twitter. Parameters:
|
||||
* `Twitter.php` : Twitter. Parameters:
|
||||
* q=keyword : Keyword search.
|
||||
* u=username : Get user timeline.
|
||||
|
||||
Easy new bridge system (detail below) !
|
||||
|
||||
Output format
|
||||
===
|
||||
Output format can be used in any rss-bridge:
|
||||
|
||||
* `format=atom` (default): ATOM Feed.
|
||||
* `format=json` : jSon
|
||||
* `format=html` : html page
|
||||
* `format=plaintext` : raw text (php object, as returned by print_r)
|
||||
|
||||
If format is not specified, ATOM format will be used.
|
||||
|
||||
Examples
|
||||
===
|
||||
* `rss-bridge-twitter.php?u=Dinnerbone` : Get Dinnerbone (Minecraft developer) timeline, in ATOM format.
|
||||
* `rss-bridge-twitter.php?q=minecraft&format=html` : Everything Minecraft from Twitter, in html format.
|
||||
* `rss-bridge-flickr-explore.php` : Latest interesting images from Flickr, in ATOM format.
|
||||
* `Atom` : ATOM Feed.
|
||||
* `Json` : jSon
|
||||
* `Html` : html page
|
||||
* `Plaintext` : raw text (php object, as returned by print_r)
|
||||
|
||||
Easy new format system (detail below) !
|
||||
|
||||
Requirements
|
||||
===
|
||||
|
||||
* php 5.3
|
||||
* [PHP Simple HTML DOM Parser](http://simplehtmldom.sourceforge.net/)
|
||||
* [PHP Simple HTML DOM Parser](http://simplehtmldom.sourceforge.net)
|
||||
|
||||
Author
|
||||
===
|
||||
|
@ -44,7 +39,7 @@ I'm sebsauvage, webmaster of [sebsauvage.net](http://sebsauvage.net), author of
|
|||
Thanks to [Mitsukarenai](https://github.com/Mitsukarenai) for the inspiration.
|
||||
|
||||
Patch :
|
||||
- Yves ASTIER (Draeli) : PHP optimizations, minor fixes, dynamic brigde list with all stuff behind
|
||||
- Yves ASTIER (Draeli) : PHP optimizations, minor fixes, dynamic brigde/format list with all stuff behind and extend cache system. Mail : contact@yves-astier.com
|
||||
|
||||
Licence
|
||||
===
|
||||
|
@ -54,7 +49,7 @@ Code is public domain.
|
|||
Technical notes
|
||||
===
|
||||
* There is a cache so that source services won't ban you even if you hammer the rss-bridge with requests. Each bridge has a different duration for the cache. The `cache` subdirectory will be automatically created. You can purge it whenever you want.
|
||||
* To implement a new rss-bridge, import `rss-bridge-lib.php` and subclass `RssBridgeAbstractClass`. Look at existing bridges for examples. For items you generate in `$this->items`, only `uri` and `title` are mandatory in each item. `timestamp` and `content` are optional but recommended. Any additional key will be ignored by ATOM feed (but outputed to jSon).
|
||||
* To implement a new rss-bridge, create a new class in `bridges` directory and extends with `BridgeAbstract`. Look at existing bridges for examples. For items you generate in `$this->items`, only `uri` and `title` are mandatory in each item. `timestamp` and `content` are optional but recommended. Any additional key will be ignored by ATOM feed (but outputed to jSon). If you want your new bridge appear in `index.php`, don't forget add annotation.
|
||||
|
||||
Rant
|
||||
===
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue