Comments (2)
au cas où : http://apod.nasa.gov/apod.rss
from rss-bridge.
Ce code HTML, CE CODE HTML D'UN AUTRE SIÈCLE !!!! 👎
J'abandonne. Faites-vous plaisir:
class NasaApodBridge extends BridgeAbstract{
public function collectData(array $param) {
$html = file_get_html('http://apod.nasa.gov/apod/archivepix.html') or $this->returnError('Could not request NASA.', 404);
$list = explode("<br>", $html->find('b', 0)->innertext);
$i = 0;
foreach($list as $line) {
if($i < 5) {
$item = new \Item();
//$item->uri = 'http://apod.nasa.gov/apod/'.$line->find('a', 0)->getAttribute('href');
$date = explode(' ', $line);
$item->timestamp = strtotime($date[1].$date[2].$date[0]);
$item->content = $line;
$item->title = $line;
$this->items[] = $item;
$i++;
}
}
}
public function getName(){
return 'NASA APOD';
}
public function getURI(){
return 'http://apod.nasa.gov/apod/';
}
public function getCacheDuration(){
return 3600*12; // 12 hours
}
}
from rss-bridge.
Related Issues (20)
- Facebook Bridge | Main Site failed with error 0
- ТыжИсторик's latest zen.yandex posts failed with error 404 HOT 2
- Only 16 bridges are available after installing RSS-Bridge with Docker ! HOT 4
- Bridge request for ORF TVthek HOT 5
- [YandexZenBridge] Call for a new maintainer
- Reddit Bridge - single displaying the author of the post. HOT 1
- - YouTube failed with error 0 HOT 1
- FeedMergeBridge uses description instead of content for new feed HOT 1
- glibc-vulnerability cve-2024-2961 [BUG]
- TikTok failed with error 400 HOT 1
- CSS Selector Complex Bridge throws Error Code "0" when parsing time HOT 3
- FilterBridge: add ability to override feed title HOT 1
- cURL error : 23 HOT 9
- Bridge request for Pocket Explore (Firefox Startpage)
- Username _rdx_king29 - Posts, Stories & Tags - Imgsed Bridge failed with error 0 HOT 7
- Bridge request for Sudomemo
- JavaScript function remove_www_from_url breaks URLs on frontpage HOT 2
- Finds Telegram channel but says "Unable to find channel. The channel is non-existing or non-public." HOT 1
- Bridge request for cara.app HOT 1
- VK Bridge audio HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rss-bridge.