Affiliate Marketing
Forum Search

Reply
 
LinkBack Thread Tools Display Modes

  #1 (permalink)  
Old 20-05-04
scifind's Avatar
thin[box]king
 
Join Date: Aug 2003
Location: Cambridge
Posts: 1,831
Thanks: 6
Thanked 4 Times in 4 Posts
scifind is an unknown quantity at this point
  Amazon Browse Nodes

Any one have a list of amazon UK growse nodes?
(ie number and description)
I had one once but cannot remember where it went or where it came from...
__________________
Earn an average of £45 per sale. | New Star Trek Trailer | Looking for Mobile Phone Link Swaps
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 20-05-04
Keith's Avatar
Moderator
 
Join Date: Aug 2003
Location: Richmond North Yorkshire
Posts: 2,107
Thanks: 8
Thanked 4 Times in 3 Posts
Keith seems to know their stuff
browse nodes can be downloaded here http://www.jungledeveloper.com/modul...eq=MostPopular
__________________
Keith
My Blog general ramblings. Internet Marketing Blogs UK all the blogs together in one place (pm for inclusion)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 20-05-04
Super Moderator
 
Join Date: Aug 2003
Posts: 2,451
Thanks: 0
Thanked 0 Times in 0 Posts
Rich is an unknown quantity at this point
I think these were the ones I used: -
http://www.jungledeveloper.com/modul...download&cid=3

Edit: Ok, Keith beat me to it.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 20-05-04
DanielCoe's Avatar
Home is where I hang my @
 
Join Date: Sep 2003
Location: My Bedroom
Posts: 405
Thanks: 0
Thanked 0 Times in 0 Posts
DanielCoe is an unknown quantity at this point
There is this little script
PHP Code:
<?php

error_reporting
(E_ALL);

/*
getmodes.php -- scrapes amazon modes and categories for you
Author: Jason Levitt
Version: 1.03
Date: March 25th, 2004

Web site:  [url]http://amazonlib.sourceforge.net[/url]

Getmodes goes to all the amazon sites and scrapes
the current set of modes and categories off of the
home page. It returns them in your choice of a:

1) Convenient PHP associative array structure that you can copy and past into
your PHP programs. 
2) Convenient Javascript array structure
3) Well-formed XML

Disclaimer: this program is a screen-scraper and will
likely return incorrect results if Amazon drastically
changes the layout of their home pages.

Copyright (c) 2004 Jason Levitt

This library is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public
License as published by the Free Software Foundation.
[url]http://www.gnu.org/licenses/gpl.html[/url]

*/

Define('PHPARR'1); // PHP associative array
Define('JSARR'2); // Javascript array
Define('XML'3); // well-formed XML

//===================================
// USER DEFINED SETTINGS

$of=PHPARR;  // output format, PHPARR | JSARR | XML

//END USER DEFINED SETTINGS
//===================================

$num=$HTTP_SERVER_VARS['argc'];
$eol=($num 0) ? "\n" "";

$urls = array (
'us' => 'http://www.amazon.com',
'uk' => 'http://www.amazon.co.uk',
'de' => 'http://www.amazon.de',
'fr' => 'http://www.amazon.fr',
'ca' => 'http://www.amazon.ca',
'jp' => 'http://www.amazon.co.jp'
);

// The first select tag on the Amazon home page
$selstrings = array(
'us' => '<select name=url>',
'uk' =>  '<select name="url" size="1">',
'de' => '<select name=url>',
'fr' => '<select name="url">',
'ca' =>  '<select name="url">',
'jp' =>  '<select name=url>'
);

if (
$of == XML) {
    echo 
'<?xml version="1.0" encoding="UTF-8" standalone="yes"?>'."\n";
    echo 
'<amazonmodes>';
}

foreach (
$urls as $k => $link) {
    
    
$matches=array();
    
$dataus='';
    
    
$stuff=parse_url($link);
    
    
$fpus = @fopen($link,"r");
    if (
$fpus == false) {
        die(
"Unable to open url $link $eol");
    }
    while(
$line1=fgets($fpus,4096)) {
        
$dataus=$dataus.$line1;
    }
    
fclose($fpus);
    
    switch (
$of) {
        case 
PHPARR:
        echo 
"$eol $eol // Modes for ".$stuff['host']." $eol";
        echo 
'$Modes'.strtoupper($k).' = array( '.$eol;
        break;
        case 
JSARR:
        echo 
$eol.'theOptions["'.$stuff['host'].' ('.strtoupper($k).')"] = ['.$eol;
        break;
        case 
XML:
        echo 
"\n".'<modes country="'.$k.'">'."\n";
        break;
    }
    
    
$sel=$selstrings[$k];
    
$foundname=stristr($dataus$sel);
    
    if (
$foundname)
    {
        
$place=strpos($foundname'</select>');
        
$workstr=substr($foundnamestrlen($sel), $place-strlen($sel));
        
        
$workstr=str_replace("\n"" "$workstr);
        
        
preg_match_all("/<option value=\"(?:index=)?(.*?)\"[^>]*>([^<>]*)/s"$workstr$matchesPREG_SET_ORDER);
        
        
$i=0;
        foreach (
$matches as $val) {
            
$i++;
            
$mode=trim($val[1]);
            
$what=trim($val[2]);
            
            switch (
$of) {
                case 
PHPARR:
                if (
$i == sizeof($matches)) {
                    echo 
"'$mode'".' => '."'$what' $eol";
                } else {
                    echo 
"'$mode'".' => '."'$what', $eol";
                }
                break;
                
                case 
JSARR:
                if (
$i == sizeof($matches)) {
                    echo 
"[\"$what\"".','."\"$mode\"] $eol";
                } else {
                    echo 
"[\"$what\"".','."\"$mode\"], $eol";
                }
                break;
                
                case 
XML:
                
// Don't want double encoding -- decode first, then encode
                
$mode=html_entity_decode($modeENT_NOQUOTES);
                
$what=html_entity_decode($whatENT_NOQUOTES);
                echo 
'<mode name="'.htmlentities($modeENT_NOQUOTES).'">'.htmlentities($whatENT_NOQUOTES).'</mode>'."\n";
                break;
                
                
            }
            
        }
        
        switch (
$of) {
            case 
PHPARR:
            echo 
');';
            break;
            case 
JSARR:
            echo 
'];';
            break;
            case 
XML:
            echo 
'</modes>';
            break;
        }
        
        
    } else {
        
        die(
"No modes found for site $link $eol");
    }
    
}

if (
$of == XML) {
    echo 
"\n".'</amazonmodes>'."\n";
}


?>
__________________
<a href="http://www.bridal-jewellery.co.uk/affiliate_program.htm" target="_blank">Earn 6% commission on Bridal Jewellery</a>
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 24-05-04
scifind's Avatar
thin[box]king
 
Join Date: Aug 2003
Location: Cambridge
Posts: 1,831
Thanks: 6
Thanked 4 Times in 4 Posts
scifind is an unknown quantity at this point
  Quick Script

Hi
Cheers to all that responded.
Usefull, but I wonder if anyone had a quick script than can call a browse nodes description from amazon?

ie I input
600170
And I get out:
Photo Editing

there must be a simple script to pull this from somewhee.

Cheers
__________________
Earn an average of £45 per sale. | New Star Trek Trailer | Looking for Mobile Phone Link Swaps
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Site copyright (Amazon copy) smn2 The Affiliate Marketing Lounge 23 24-01-06 09:24 AM
Using amazon rss feeds lowndsy The Affiliate Marketing Lounge 0 10-05-04 11:18 AM
Amazon - A Complete Disgrace Guswold Independent Programs 5 11-11-03 01:30 PM
amazon add dynamic content warncouk Independent Programs 5 26-03-02 02:17 AM


Affiliate Marketing RSS Feeds - Contact Us - Affiliate Marketing - Archive - Privacy Statement - Top

Content Relevant URLs by vBSEO 3.2.0 RC7