Find Jobs
Hire Freelancers

PHP RSS Feed Parser

$10-30 USD

Closed
Posted over 5 years ago

$10-30 USD

Paid on delivery
I need one PHP function that takes the URL of any RSS news feed, loops on all the articles in the RSS feed and for each article will fill the following variables with the correct data: $FeedURL -> Holds the rss feed url so it will be the same for all the articles $ChannelTile -> Holds the rss feed title $ArticleTitle -> Holds the article title $ArticleLink -> Holds the article URL $ArticleDesc -> Holds the article description $ArticlePubDate -> Holds the article publish date $ArticleImage -> Holds the article image URL (in case the article doesn't have an image then this variable should hold "[login to view URL]") Please note the following: 1) One PHP function and no more than that 2) The function should be working fine with any feed from the attached excel list 3) While implementing the function you must test it using all the feeds in the excel file 4) All data must be filled in the mentioned variables This is a sample function for reference, but note that this function doesn't work with all the feeds while the new function you will create needs to work with all the feeds: $FeedURL = simplexml_load_file($URL); $namespaces = $rss->getNamespaces(true); $ChannelTitle = $rss->channel->title; foreach ($rss->channel->item as $item) { if(array_key_exists('media', $namespaces)) { $media_content = $item->children($namespaces['media']); foreach($media_content as $i){ $imageAlt = (string)$i->attributes()->url; } $ArticleImage = $item->image; $ArticleImageAlt = $imageAlt; } else { $ArticleImage = ""; $ArticleImageAlt = "images/[login to view URL]"; } $ArticleLink = $item->link; $ArticleTitle = $item->title; $ArticleDesc = $item->description; $ArticlePubDate = $item->pubDate; } }
Project ID: 18376842

About the project

5 proposals
Remote project
Active 5 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
5 freelancers are bidding on average $47 USD for this job
User Avatar
Hi Sir, I can certainly do the PHP RSS Feed for you, let us have a chat to discuss further. I'm a dedicated, details oriented, and passionate IT professional with an experience of 6+ years in website/application designing and development. I can assure you, my creativity and effectiveness is surely going to be a great value to your project. Thank you for your time, Jay
$35 USD in 7 days
4.8 (30 reviews)
5.1
5.1

About the client

Flag of EGYPT
Cairo, Egypt
5.0
91
Payment method verified
Member since Oct 6, 2014

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.