3rd batch of bridges.

Signed-off-by: teromene <teromene@teromene.fr>
This commit is contained in:
teromene 2015-11-05 11:20:11 +00:00
parent 6c420883f2
commit eaa8cf4173
17 changed files with 175 additions and 162 deletions

View file

@ -1,15 +1,16 @@
<?php <?php
/**
* RssBridgeRaymond
* Returns the 3 newest posts from Raymond.cc (full text)
*
* @name Raymond
* @homepage http://www.raymond.cc
* @description Returns the 3 newest posts from Raymond.cc (full text)
* @maintainer pit-fgfjiudghdf
* @update 2014-05-26
*/
class RaymondBridge extends BridgeAbstract{ class RaymondBridge extends BridgeAbstract{
public function loadMetadatas() {
$this->maintainer = "pit-fgfjiudghdf";
$this->name = "Raymond";
$this->uri = "http://www.raymond.cc";
$this->description = "Returns the 3 newest posts from Raymond.cc (full text)";
$this->update = "2014-05-26";
}
public function collectData(array $param){ public function collectData(array $param){
function raymondStripCDATA($string) { function raymondStripCDATA($string) {
$string = str_replace('<![CDATA[', '', $string); $string = str_replace('<![CDATA[', '', $string);

View file

@ -1,17 +1,16 @@
<?php <?php
/**
* 3DS Scene Releases
* Returns the newest releases
* 2015-09-08
*
* @name 3DS Scene Releases
* @homepage http://www.3dsdb.com/
* @description Returns the newest scene releases.
* @maintainer ORelio
* @update 2015-09-17
*/
class Releases3DSBridge extends BridgeAbstract { class Releases3DSBridge extends BridgeAbstract {
public function loadMetadatas() {
$this->maintainer = "ORelio";
$this->name = "3DS Scene Releases";
$this->uri = "http://www.3dsdb.com/";
$this->description = "Returns the newest scene releases.";
$this->update = "2015-09-17";
}
public function collectData(array $param) { public function collectData(array $param) {
function ExtractFromDelimiters($string, $start, $end) { function ExtractFromDelimiters($string, $start, $end) {

View file

@ -1,16 +1,16 @@
<?php <?php
/**
* RssBridgeReporterre
* Returns the newest article
* 2015-04-07
*
* @name Reporterre Bridge
* @homepage http://www.reporterre.net/
* @description Returns the newest articles.
* @maintainer nyutag
*/
class ReporterreBridge extends BridgeAbstract{ class ReporterreBridge extends BridgeAbstract{
public function loadMetadatas() {
$this->maintainer = "nyutag";
$this->name = "Reporterre Bridge";
$this->uri = "http://www.reporterre.net/";
$this->description = "Returns the newest articles.";
$this->update = "2015-04-07";
}
public function collectData(array $param){ public function collectData(array $param){
function ExtractContentReporterre($url) { function ExtractContentReporterre($url) {

View file

@ -1,15 +1,16 @@
<?php <?php
/**
* RssBridgeRue89
* Returns the 5 newest posts from http://rue89.nouvelobs.com/ (full text)
*
* @name Rue89
* @homepage http://rue89.nouvelobs.com/
* @description Returns the 5 newest posts from Rue89 (full text)
* @update 2015-01-30
* @maintainer pit-fgfjiudghdf
*/
class Rue89Bridge extends BridgeAbstract{ class Rue89Bridge extends BridgeAbstract{
public function loadMetadatas() {
$this->maintainer = "pit-fgfjiudghdf";
$this->name = "Rue89";
$this->uri = "http://rue89.nouvelobs.com/";
$this->description = "Returns the 5 newest posts from Rue89 (full text)";
$this->update = "2015-01-30";
}
public function collectData(array $param){ public function collectData(array $param){
function Rue89StripCDATA($string) { function Rue89StripCDATA($string) {
$string = str_replace('<![CDATA[', '', $string); $string = str_replace('<![CDATA[', '', $string);

View file

@ -1,16 +1,16 @@
<?php <?php
/**
* RssBridgeScilogs
* Returns the newest articles
* 2014-05-25
*
* @name Scilogs Bridge
* @homepage http://www.scilogs.fr/
* @description Returns the newest articles.
* @maintainer qwertygc
*/
class ScilogsBridge extends BridgeAbstract{ class ScilogsBridge extends BridgeAbstract{
public function loadMetadatas() {
$this->maintainer = "qwertygc";
$this->name = "Scilogs Bridge";
$this->uri = "http://www.scilogs.fr/";
$this->description = "Returns the newest articles.";
$this->update = "2014-05-25";
}
public function collectData(array $param){ public function collectData(array $param){
function ScilogsStripCDATA($string) { function ScilogsStripCDATA($string) {

View file

@ -1,16 +1,16 @@
<?php <?php
/**
* RssBridgeSeCoucherMoinsBete
* Returns the newest anecdotes
* 2014-05-25
*
* @name Se Coucher Moins Bête Bridge
* @homepage http://secouchermoinsbete.fr/
* @description Returns the newest anecdotes.
* @maintainer Astalaseven
*/
class ScmbBridge extends BridgeAbstract{ class ScmbBridge extends BridgeAbstract{
public function loadMetadatas() {
$this->maintainer = "Astalaseven";
$this->name = "Se Coucher Moins Bête Bridge";
$this->uri = "http://secouchermoinsbete.fr/";
$this->description = "Returns the newest anecdotes.";
$this->update = "2014-05-25";
}
public function collectData(array $param){ public function collectData(array $param){
$html = ''; $html = '';
$html = file_get_html('http://secouchermoinsbete.fr/') or $this->returnError('Could not request Se Coucher Moins Bete.', 404); $html = file_get_html('http://secouchermoinsbete.fr/') or $this->returnError('Could not request Se Coucher Moins Bete.', 404);

View file

@ -1,16 +1,15 @@
<?php <?php
/**
* @name SegfaultMint
* @homepage http://segfault.linuxmint.com/
* @description Returns the 5 newest posts from SegfaultMint (full text)
* @maintainer qwertygc
* @update 2014-07-05
*/
class SegfaultMintBridge extends BridgeAbstract{ class SegfaultMintBridge extends BridgeAbstract{
public function loadMetadatas() {
$this->maintainer = "qwertygc";
$this->name = "SegfaultMint";
$this->uri = "http://segfault.linuxmint.com/";
$this->description = "Returns the 5 newest posts from SegfaultMint (full text)";
$this->update = "2014-07-05";
}
public function collectData(array $param){ public function collectData(array $param){

View file

@ -1,13 +1,17 @@
<?php <?php
/**
* Unfortunatly, Sexactu do not provide a RSS stream, which prevents me from upgrading this to the mugnificent RssExpander framework
* @name Sexactu
* @description Sexactu via rss-bridge
* @update 04/02/2014
*/
define("GQ", "http://www.gqmagazine.fr"); define("GQ", "http://www.gqmagazine.fr");
class Sexactu extends BridgeAbstract{ class Sexactu extends BridgeAbstract{
public function loadMetadatas() {
$this->maintainer = "Riduidel";
$this->name = "Sexactu";
$this->uri = "http://www.gqmagazine.fr";
$this->description = "Sexactu via rss-bridge";
$this->update = "04/02/2014";
}
public function collectData(array $param){ public function collectData(array $param){
$find = array('janvier', 'février', 'mars', 'avril', 'mai', 'juin', 'juillet', 'août', 'septembre', 'novembre', 'décembre'); $find = array('janvier', 'février', 'mars', 'avril', 'mai', 'juin', 'juillet', 'août', 'septembre', 'novembre', 'décembre');
$replace = array('January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'); $replace = array('January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December');

View file

@ -1,17 +1,16 @@
<?php <?php
/**
* Silicon Bridge
* Returns the newest articles
* 2015-09-08
*
* @name Silicon.fr
* @homepage http://www.silicon.fr/
* @description Returns the newest articles.
* @maintainer ORelio
* @update 2015-09-08
*/
class SiliconBridge extends BridgeAbstract { class SiliconBridge extends BridgeAbstract {
public function loadMetadatas() {
$this->maintainer = "ORelio";
$this->name = "Silicon.fr";
$this->uri = "http://www.silicon.fr/";
$this->description = "Returns the newest articles.";
$this->update = "2015-09-08";
}
public function collectData(array $param) { public function collectData(array $param) {
function StripCDATA($string) { function StripCDATA($string) {

View file

@ -1,14 +1,16 @@
<?php <?php
/**
*
* @name The Coding Love
* @homepage http://thecodinglove.com/
* @description The Coding Love
* @update 04/02/2015
* initial maintainer: superbaillot.net
*/
class TheCodingLoveBridge extends BridgeAbstract{ class TheCodingLoveBridge extends BridgeAbstract{
public function loadMetadatas() {
$this->maintainer = "superbaillot.net";
$this->name = "The Coding Love";
$this->uri = "http://thecodinglove.com/";
$this->description = "The Coding Love";
$this->update = "04/02/2015";
}
public function collectData(array $param){ public function collectData(array $param){
$html = file_get_html('http://thecodinglove.com/') or $this->returnError('Could not request The Coding Love.', 404); $html = file_get_html('http://thecodinglove.com/') or $this->returnError('Could not request The Coding Love.', 404);

View file

@ -1,18 +1,22 @@
<?php <?php
/**
*
* @name The Oatmeal
* @homepage http://theoatmeal.com/
* @description Un petit site de dessins assez rigolos
* @update 2015-07-03
* @maintainer Riduidel
.
*/
require_once 'bridges/RssExpander.php'; require_once 'bridges/RssExpander.php';
define("THE_OATMEAL", "http://theoatmeal.com/"); define("THE_OATMEAL", "http://theoatmeal.com/");
define("THE_OATMEAL_RSS", "http://feeds.feedburner.com/oatmealfeed"); define("THE_OATMEAL_RSS", "http://feeds.feedburner.com/oatmealfeed");
class TheOatmealBridge extends RssExpander{ class TheOatmealBridge extends RssExpander{
public function loadMetadatas() {
$this->maintainer = "Riduidel";
$this->name = "The Oatmeal";
$this->uri = "http://theoatmeal.com/";
$this->description = "Un petit site de dessins assez rigolos";
$this->update = "2015-07-03";
}
public function collectData(array $param){ public function collectData(array $param){
$param['url'] = THE_OATMEAL_RSS; $param['url'] = THE_OATMEAL_RSS;
parent::collectData($param); parent::collectData($param);

View file

@ -1,14 +1,16 @@
<?php <?php
/**
*
* @name Tuxboard
* @homepage http://www.tuxboard.com/
* @description Tuxboard
* @update 2014-07-08
* initial maintainer: superbaillot.net
*/
class TuxboardBridge extends BridgeAbstract{ class TuxboardBridge extends BridgeAbstract{
public function loadMetadatas() {
$this->maintainer = "superbaillot.net";
$this->name = "Tuxboard";
$this->uri = "http://www.tuxboard.com/";
$this->description = "Tuxboard";
$this->update = "2014-07-08";
}
public function collectData(array $param){ public function collectData(array $param){
function StripCDATA($string) { function StripCDATA($string) {

View file

@ -1,21 +1,21 @@
<?php <?php
/**
* WikipediaDEBridge
* Retrieve latest highlighted articles from Wikipedia in German.
* 2015-11-04
*
* @name Wikipedia DE "Today's Featured Article..."
* @homepage https://de.wikipedia.org/
* @description Returns the highlighted en.wikipedia.org article.
* @maintainer cnlpete
*/
class WikipediaDEBridge extends BridgeAbstract{ class WikipediaDEBridge extends BridgeAbstract{
public function loadMetadatas() {
$this->maintainer = "cnlpete";
$this->name = "Wikipedia DE Today's Featured Article...";
$this->uri = "https://de.wikipedia.org/";
$this->description = "Returns the highlighted en.wikipedia.org article.";
$this->update = "2015-11-04";
}
public function collectData(array $param){ public function collectData(array $param){
$html = ''; $html = '';
$host = 'http://de.wikipedia.org'; $host = 'http://de.wikipedia.org';
// If you want HTTPS access instead, uncomment the following line: // If you want HTTPS access instead, uncomment the following line:
//$host = 'https://en.wikipedia.org'; //$host = 'https://de.wikipedia.org';
$link = '/wiki/Wikipedia:Hauptseite'; $link = '/wiki/Wikipedia:Hauptseite';
$html = file_get_html($host.$link) or $this->returnError('Could not request Wikipedia DE.', 404); $html = file_get_html($host.$link) or $this->returnError('Could not request Wikipedia DE.', 404);

View file

@ -1,16 +1,16 @@
<?php <?php
/**
* RssBridgeWikipediaEN
* Retrieve latest highlighted articles from Wikipedia in English.
* 2014-05-25
*
* @name Wikipedia EN "Today's Featured Article..."
* @homepage https://en.wikipedia.org/
* @description Returns the highlighted en.wikipedia.org article.
* @maintainer gsurrel
*/
class WikipediaENBridge extends BridgeAbstract{ class WikipediaENBridge extends BridgeAbstract{
public function loadMetadatas() {
$this->maintainer = "gsurrel";
$this->name = "Wikipedia EN 'Today's Featured Article...'";
$this->uri = "https://en.wikipedia.org/";
$this->description = "Returns the highlighted en.wikipedia.org article.";
$this->update = "2014-05-25";
}
public function collectData(array $param){ public function collectData(array $param){
$html = ''; $html = '';
$host = 'http://en.wikipedia.org'; $host = 'http://en.wikipedia.org';

View file

@ -1,16 +1,16 @@
<?php <?php
/**
* RssBridgeWikipediaEO
* Retrieve latest highlighted articles from Wikipedia in Esperanto.
* 2014-05-25
*
* @name Wikipedia EO "Artikolo de la semajno"
* @homepage https://eo.wikipedia.org/
* @description Returns the highlighted eo.wikipedia.org article.
* @maintainer gsurrel
*/
class WikipediaEOBridge extends BridgeAbstract{ class WikipediaEOBridge extends BridgeAbstract{
public function loadMetadatas() {
$this->maintainer = "gsurrel";
$this->name = "Wikipedia EO 'Artikolo de la semajno'";
$this->uri = "https://eo.wikipedia.org/";
$this->description = "Returns the highlighted eo.wikipedia.org article.";
$this->update = "2014-05-25";
}
public function collectData(array $param){ public function collectData(array $param){
$html = ''; $html = '';
$host = 'http://eo.wikipedia.org'; $host = 'http://eo.wikipedia.org';

View file

@ -1,16 +1,16 @@
<?php <?php
/**
* RssBridgeWikipediaFR
* Retrieve latest highlighted articles from Wikipedia in French.
* 2014-05-25
*
* @name Wikipedia FR "Lumière sur..."
* @homepage https://fr.wikipedia.org/
* @description Returns the highlighted fr.wikipedia.org article.
* @maintainer gsurrel
*/
class WikipediaFRBridge extends BridgeAbstract{ class WikipediaFRBridge extends BridgeAbstract{
public function loadMetadatas() {
$this->maintainer = "gsurrel";
$this->name = "Wikipedia FR 'Lumière sur...'";
$this->uri = "https://fr.wikipedia.org/";
$this->description = "Returns the highlighted fr.wikipedia.org article.";
$this->update = "2014-05-25";
}
public function collectData(array $param){ public function collectData(array $param){
$html = ''; $html = '';
$host = 'http://fr.wikipedia.org'; $host = 'http://fr.wikipedia.org';

View file

@ -1,14 +1,16 @@
<?php <?php
/**
* @name Zataz
* @homepage http://www.zataz.com/
* @description ZATAZ Magazine - S'informer, c'est déjà se sécuriser
* @maintainer aledeg
* @update 07/02/2015
*/
class ZatazBridge extends BridgeAbstract { class ZatazBridge extends BridgeAbstract {
public function loadMetadatas() {
$this->maintainer = "aledeg";
$this->name = "Zataz";
$this->uri = "http://www.zataz.com/";
$this->description = "ZATAZ Magazine - S'informer, c'est déjà se sécuriser";
$this->update = "07/02/2015";
}
public function collectData(array $param) { public function collectData(array $param) {
$html = file_get_html($this->getURI()) or $this->returnError('Could not request ' . $this->getURI(), 404); $html = file_get_html($this->getURI()) or $this->returnError('Could not request ' . $this->getURI(), 404);