crwaler for amazon - automatic form filling

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
korb
Forum Newbie
Posts: 5
Joined: Fri Jun 24, 2005 11:44 am
Location: London

crwaler for amazon - automatic form filling

Post by korb »

Hi

I have just wrote simple crwaler to get list of products that I'm selling on amazon with their prices and other stuff but I don't know how to automatically log into amazon.
I will appraciate any help on automatic form filling.

regards
Korb
korb
Forum Newbie
Posts: 5
Joined: Fri Jun 24, 2005 11:44 am
Location: London

Post by korb »

I found Snoopy, but I can't submit form on amazon,
fields are filled but I don't know how to submit form, there is a graaphic button withou name, only with value set.

script:

Code: Select all

<?php
include_once("Snoopy.class.php");

$snoopy = new Snoopy;
$url = 'http://www.amazon.co.uk/gp/sign-in.html/202-5935139-3894230?%5Fencoding=UTF8&path=%2Fgp%2Fseller-account%2Finventory%2Flist-inventory.html&mode=&useRedirectOnSuccess=0&query=%2AVersion%2A%3D1%26%2Aentries%2A%3D0&protocol=http';
$to_post['email'] = 'userName';
$to_post['action'] = 'sign-in';
$to_post['password'] = '********';
//$to_post['path'] = "http://www.amazon.co.uk/gp/seller-account/inventory/list-inventory.html";
$to_post['sign-in'] = 'Continue';
$snoopy->submit($url, $to_post); 
echo $snoopy->results; 
?>
does anyone have any idea??

Korb&path=%2Fgp%2Fseller-account%2Finventory%2Flist-inventory.html&amp;mode=&amp;useRedirectOnSuccess=0&amp;query=%2AVersion%2A%3D1%26%2Aentries%2A%3D0&amp;protocol=http';
$to_postї'email'] = 'userName';
$to_postї'action'] = 'sign-in';
$to_postї'password'] = '********';
//$to_postї'path'] = &quote;http://www.amazon.co.uk/gp/seller-accou ... html&quote;;
$to_postї'sign-in'] = 'Continue';
$snoopy-&gt;submit($url, $to_post);
echo $snoopy-&gt;results;
?&gt;

does anyone have any idea??

Korb.

script:

Code: Select all

<?php
include_once("Snoopy.class.php");

$snoopy = new Snoopy;
$url = 'http://www.amazon.co.uk/gp/sign-in.html/202-5935139-3894230?%5Fencoding=UTF8&path=%2Fgp%2Fseller-account%2Finventory%2Flist-inventory.html&mode=&useRedirectOnSuccess=0&query=%2AVersion%2A%3D1%26%2Aentries%2A%3D0&protocol=http';
$to_post['email'] = 'userName';
$to_post['action'] = 'sign-in';
$to_post['password'] = '********';
//$to_post['path'] = "http://www.amazon.co.uk/gp/seller-account/inventory/list-inventory.html";
$to_post['sign-in'] = 'Continue';
$snoopy->submit($url, $to_post); 
echo $snoopy->results; 
?>
do02-5935139-3894230?%5Fencoding=UTF8&path=%2Fgp%2Fseller-account%2Finventory%2Flist-inventory.html&mode=&useRedirectOnSuccess=0&query=%2AVersion%2A%3D1%26%2Aentries%2A%3D0&protocol=http';
$to_post['email'] = 'userName';
$to_post['action'] = 'sign-in';
$to_post['password'] = '********';
//$to_post['path'] = "http://www.amazon.co.uk/gp/seller-accto ... tocol=http';
$to_post['email'] = 'userName';
$to_post['action'] = 'sign-in';
$to_post['password'] = '********';
//$to_post['path'] = "http://www.amazon.co.uk/gp/seller-accou ... ntory.html";
$to_post['sign-in'] = 'Continue';
$snoopy->submit($url, $to_post);ow how to submit form, there is a graaphic button withou name, only with value set.

script:

Code: Select all

&lt;?php
include_once(&quote;Snoopy.class.php");

$snoopy = new Snoopy;
$url = 'http://www.amazon.co.uk/gp/sign-in.html/202-5935139-3894230?%5Fencoding=UTF8&amp;path=%2Fgp%2Fseller-account%2Finventory%2Flist-inventory.html&amp;mode=&amp;useRedirectOnSuccess=0&amp;query=%2AVersion%2A%3D1%26%2Aentries%2A%3D0&amp;protocol=http';
$to_post&#1111;'email'] = 'userName';
$to_post&#1111;'action'] = 'sign-in';
$to_post&#1111;'password'] = '********';
//$to_postt I can't submit form on amazon, 
fields are filled but I don't know how to submit form, there is a graaphic button withou name, only with value set.

script:

Code: Select all

<?php
include_once("Snoopy.class.php");

$snoopy = new Snoopy;
$url = 'http://www.amazon.co.uk/gp/sign-in.html/202-5935139-3894230?%5Fencoding=UTF8&path=%2Fgp%2Fseller-account%2Finventory%2Flist-inventory.html&mode=&useRedirectOnSuccess=0&query=%2AVersion%2A%3D1%26%2Aentries%2A%3D0&protocol=http';
$to_post['email'] = 'userName';
$to_post['action'] = 'sign-in';
$to_post['password'] = '********';
//$to_post['path'] = "http://www.amazon.co.uk/gp/seller-account/inventory/list-inventory.html";
$to_post['sign-in'] = 'Continue';
$snoopy->submit($url, $to_post); 
echo $snoopy->results; 
?>
does anyone have any idea??

Korb name, only with value set.

script:

Code: Select all

<?php
include_once("Snoopy.class.php&quote;);

$snoopy = new Snoopy;
$url = 'http://www.amazon.co.uk/gp/sign-in.html/202-5935139-3894230?%5Fencoding=UTF8&path=%2Fgp%2Fseller-account%2Finventory%2Flist-inventory.html&mode=&useRedirectOnSuccess=0&amp;query=%2AVersion%2A%3D1%26%2Aentries%2A%3D0&amp;protocol=http';
$to_post&#1111;'email'] = 'userName';
$to_post&#1111;'action'] = 'sign-in';
$to_post&#1111;'password'] = '********';
//$to_post&#1111;'path'] = &"Snoopy.class.php&quote;);

$snoopy = new Snoopy;
$url = 'http://www.amazon.co.uk/gp/sign-in.html/202-5935139-3894230?%5Fencoding=UTF8&amp;path=%2Fgp%2Fseller-account%2Finventory%2Flist-inventory.html&amp;mode=&amp;useRedirectOnSuccess=0&amp;query=%2AVersion%2A%3D1%26%2Aentries%2A%3D0&amp;protocol=http';
$to_post&#1111;'email'] = 'userName';
$to_post&#1111;'action'] = 'sign-in';
$to_post&#1111;'password'] = '********';
//$to_post&#1111;'path'] = &quote;http://www.amazon.co.uk/gp/seller-account/inventory/list- withou name, only with value set.

script:

Code: Select all

&lt;?php
include_once(&quote;Snoopy.class.php&quote;);

$snoopy = new Snoopy;
$url = 'http://www.amazon.co.uk/gp/sign-in.html/202-5935139-3894230?%5Fencoding=UTF8&amp;path=%2Fgp%2Fseller-account%2Finventory%2Flist-inventory.html&amp;mode=&amp;useRedirectOnSuccess=0&amp;query=%2AVersion%2A%3D1%26%2Aentries%2A%3D0&protocol=http';
$to_post['email'] = 'userName';
$to_post['action'] = 'sign-in';
$to_post['password'] = '********';
//$to_post['path'] = "http://www.amazon.co.uk/gp/seller-account/inventory/list-inventory.html"ou name, only with value set.

script:

Code: Select all

<?php
include_once("Snoopy.class.php");

$snoopy = new Snoopy;
$url = 'http://www.amazon.co.uk/gp/sign-in.html/202-5935139-3894230?%5Fencoding=UTF8&path=%2Fgp%2Fseller-account%2Finventory%2Flist-inventory.html&mode=&useRedirectOnSuccess=0&query=%2AVersion%2A%3D1%26%2Aentries%2A%3D0&protocol=http';
$to_post['email'] = 'userName';
$to_post['action'] = 'sign-in';
$to_post['password'] = '********';
//$to_post['path'] = "http://www.amazon.co.uk/gp/seller-account/inventory/list-inventory.html";
$to_post['sign-in'] = 'Continue';
$snoopy-Flist-inventory.html&mode=&useRedirectOnSuccess=0&query=%2AVersion%2A%3D1%26%2Aentries%2A%3D0&protocol=http';
$to_post['email'] = 'userName';
$to_post['action'] = 'sign-in';
$to_post['password'] = '********';
//$to_post['path'] = "http://www.amazon.co.uk/gp/seller-account/inventory/list-inventory.html";
$to_post['sign-in'] = 'Continue';
$snoopy->submit($url, $to_post); 
echo $snoopy->results; 
?>
does anyone have any idea??

Korb3D0&protocol=http';
$to_post['email'] = 'userName';
$to_post['action'] = 'sign-in';
$to_post['password'] = '********';
//$to_post['path'] = "http://www.amazon.co.uk/gp/seller-accou ... ntory.html";
$to_post['sign-in'] = 'Continue';
$snoopy->submit($url, $to_post);
echo $snoopy->results;
?>

does anyone have any idea??

Korbe is a graaphic button withou name, only with value set.

script:

Code: Select all

<?php
include_once("Snoopy.class.php");

$snoopy = new Snoopy;
$url = 'http://www.amazon.co.uk/gp/sign-in.html/202-5935139-3894230?%5Fencoding=UTF8&path=%2Fgp%2Fseller-account%2Finventory%2Flist-inventory.html&mode=&useRedirectOnSuccess=0&query=%2AVersion%2A%3D1%26%2Aentries%2A%3D0&protocol=http';
$to_post['email'] = 'userName';
$to_post['action'] = 'sign-in';
$to_post['password'] = '********';
//$to_post['path'] = "http://www.amazon.co.uk/gp/seller-account/inventory/list-inventory.html";
$to_post['e filled but I don't know how to submit form, there is a graaphic button withou name, only with value set.

script:

Code: Select all

<?php
include_once("Snoopy.class.php");

$snoopy = new Snoopy;
$url = 'http://www.amazon.co.uk/gp/sign-in.html/202-5935139-3894230?%5Fencoding=UTF8&path=%2Fgp%2Fseller-account%2Finventory%2Flist-inventory.html&mode=&useRedirectOnSuccess=0&query=%2AVersion%2A%3D1%26%2Aentries%2A%3D0&protocol=http';
$to_post['email'] = 'userName';
$to_post['action'] = 'sign-in';
$to_post['password'] = '********';
//$to_post['path'] = "http://www.amazon.co.uk/gp/seller-account/inventory/list-inventory.html";
$to_post['sign-in'] = 'Continue';
$snoopy->submit($url, $to_post); 
echo $snoopy->results; 
?>
does anyone have any idea??

Korb
Post Reply