We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
http://apod.nasa.gov/apod/archivepix.html Parce qu'il n'y a pas de flux existant et que c'est intéressant !
The text was updated successfully, but these errors were encountered:
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 } }
Sorry, something went wrong.
au cas où : http://apod.nasa.gov/apod.rss
8752665
Merge pull request #92 from corenting/master
f45c1aa
Add NasaApod bridge (fix #17)
No branches or pull requests
http://apod.nasa.gov/apod/archivepix.html
Parce qu'il n'y a pas de flux existant et que c'est intéressant !
The text was updated successfully, but these errors were encountered: