Building a Datafeed Site – Step 1

by on March 5, 2010

Pin It

DatafeedsThis is the first in a series of how to build a datafeed site. I’m building the site right now, and will share the experience with you.

This will be an intermediate to advanced method of using datafeeds to build a site. If you’re looking for a simple way to get started, go check out Pop Shops or Datafeedr. What I’m going to show you is how to build a high-quality site, driven by a datafeed, for free.

The absolute first thing you need to do is pick a niche. I’m not going to help you here, but because I’ve been talking with Deborah Carney (aka Loxly), I’m going to build a tea site. Loxly manages the American Tea Room affiliate program, so I’m going to use their feed, along with Art of Tea (both ShareASale merchants). After the site is “done”, I’ll look at adding a CJ merchant feed in there.

ShareASale's datafeed iconTo find merchants in ShareASale that have datafeeds, login and look under “Find/Join Merchants” and click on “View those with Datafeeds“. To keep things simple, pick a merchant (or two, or three) with a couple hundred products. If you choose ecampus, with 2.7mm products, you’re on your own.

Choosing a domain name isn’t extremely important, but as Vinny O’Hare reminded me, have the keyword in there. So I’m building out GreenWhiteAndBlackTea.com. Just make sure you keep the domain under 35 characters, so you can use it as your AdWords display URL.

Set-up the hosting, and make sure you create a MySQL database when you do this. We’re going to save the datafeed in MySQL, to make a dynamic site. Don’t worry, I’ll give you the products table structure… all 41 fields!

Next, find a template from Free CSS Templates that matches the theme of your niche. You’ll see on GreenWhiteAndBlackTea.com I’m using the Begrimed theme.

Themes from Free CSS Templates include a single index.html file, but I want you to break this into 3 php files: header.php, index.php, and footer.php. Index.php should include header.php, then have the content unique to the index page, then include footer.php. My index.php file is simply:

<?php
	include('./vars.php');
	$bNavHome = true;
	include('./header.php');
?>
<div class="post">
	<h2 class="title">Welcome to GreenWhiteAndBlackTea.com</h2>
	<div class="entry">
		<p>This is <strong>Begrimed  </strong>, a free, fully standards-compliant CSS template designed by FreeCssTemplates<a href="http://www.nodethirtythree.com/"></a> for <a href="http://www.freecsstemplates.org/">Free CSS Templates</a>.  This free template is released under a <a href="http://creativecommons.org/licenses/by/2.5/">Creative Commons Attributions 2.5</a> license, so you’re pretty much free to do whatever you want with it (even use it commercially) provided you keep the links in the footer intact. Aside from that, have fun with it :) </p>
		<p>Sed lacus. Donec lectus. Nullam pretium nibh ut turpis. Nam bibendum. In nulla tortor, elementum ipsum. Proin imperdiet est. Phasellus dapibus semper urna. Pellentesque ornare, orci in felis. Donec ut ante. In id eros. Suspendisse lacus turpis, cursus egestas at sem.</p>
	</div>
</div><!-- ends class="post" -->
<?php
	include('./footer.php');
?>

Don’t worry about vars.php right now.

That’s enough for one day. Next, we need to download the datafeeds, and get them into MySQL.

Was this post useful? Please share it with others:

Pin It

Turn Datafeeds Into Affiliate Store In 3 Easy Steps - No HTML Knowledge

Click to play videoCustom programmed datafeed sites can be a little too mcuh for some people. That's ok! That's why there's Datafeedr.

If you think building an affiliate store was just too hard, then Datafeedr's Click & Create system is just what you've been waiting for. Even if you have no experience with web design at all, you can have your own datafeed-driven affiliate site up and running today. Watch the video NOW and see this Push-Button Store Creation System in action!

{ 10 comments… read them below or add one }

PandaMarketer March 5, 2010 at 6:40 pm

This is what I like about your blog, Eric, it’s not for the novice programmer (or those afraid of PHP tags)! Since I heard a nice podcast called Both Sides of the Tracks, I have been thinking about datafeeds too.

Reply

Angelo March 28, 2010 at 3:53 pm

Check out FeedShare.com as well. Lots of data feeds from various networks and it’s 100% free unlike Pop Shops and Datafeedr.

Reply

Bishop April 25, 2010 at 4:32 pm

So, I did everything from the instruction, the result is good! thanks!

Reply

Mike Johnson June 12, 2010 at 10:27 am

I understand that you know the technical side of building a site like this, the only problem I see is that there are already a dozen plugins or more available that can do this entire process in minutes as opposed to building it from scratch like this.

JMHO.

Mike

Reply

ArtMan June 22, 2010 at 1:42 pm

Mike,
The advantage of doing the code is you’ll have more control over the end results and how it works. With an alreday-made plugin you are very much limited to the Author is providing.

Now I’d like to know if this is easy to implement into wordpress.

Art

Reply

Isaac August 21, 2010 at 9:10 pm

First visit to your site, a welcomed resource I’ll be following your feed articles closely. I’ve been looking around for a solution for my current website a mobile phone comparison site. Not a great niche I know but I appropriate the effort you have gone to here thank you.

Reply

Matt April 13, 2011 at 11:35 am

I’m getting the admin page login screen over and over when I enter in the appropriate values. Any ideas?

Reply

Eric Nagel April 13, 2011 at 12:02 pm

I’d have to do some debugging on your server to find the answer to this. It’s a pretty standard login script. You can try putting a print_r($_SERVER); after the else { in admin-password.php to see what values are in PHP_AUTH_USER and PHP_AUTH_PW.

Reply

Matt April 13, 2011 at 2:25 pm

Eric,
Thanks for the quick response.

I use 1&1 shared hosting and I believe the issue lies with the PHP configuration. I read something about it on the web earlier that this type of authentication does not work with PHP running as a CGI – I know my host does that. I did not, however, find any alternative solution to embed into the pages.

My host has an alternate method of securing individual pages from my site’s control panel, so I will likely just use that in the interim.

Thanks!
Matt

Reply

Brian Metzger November 17, 2011 at 1:14 am

Thanks for the post. At ASW11, several people mentioned how they would love to do datafeeds but the technical hurdle was too much. Since Datafeeds are our bread and butter, I don’t mind the chasm. It keeps the pool less crowded so to speak. But thanks for addressing it.

The main hurdle even beyond just getting a data feed site set up is the ability to update it, and make it automated. The other factor is how to add your own value to the datafeed through content, etc.

It keeps our programmers busy…

Reply

Leave a Comment

{ 9 trackbacks }

Previous post:

Next post: