PHP Classes
elePHPant
Icontem

ebay_de: Get details from German eBay auction pages

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Info   View files View files (4)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings  
2008-12-25 (6 years ago) RSS 2.0 feedStarStarStarStar 70%Total: 1,999 All time: 1,869 This week: 1,104Up
Version License Categories  
ebay_de 1.0Freely DistributableE-Commerce, Web services
Description Author  
This package is specific mainly for applications used in Germany Germany .

Inspired by the eBayAPI from Sunny Rajpal, this class is technically completely different and faster. All the information is gathered in one single loop. This class is for German eBay pages only (ebay.de, ebay.at).
The function showdata() shows some relevant information about a given ebay auction. Caution: there are auctions that do not cooperate well with ebay_de and ebay_de will return wrong data or no data at all.

Picture of Peter Klauer
Name: Peter Klauer <contact>
Classes: 18 packages by
Country: Germany Germany
Age: 56
All time rank: 312 in Germany Germany
Week rank: 180 Down5 in Germany Germany Down
Innovation award
Innovation award
Nominee: 3x

Details provided by the author  
Readme for ebay_de.php

Caution: There are some auctions, where this script does not work properly!
Please see the ebay_topangebote.php script. There are always some auctions
in between that do not work. Ebay_de does not return proper results in all
cases. Ebay_de.php worked fine for all auctions that my wife created for me
until now.

Hint: If you have trouble reading your auction data with ebay_de.php, let 
your wife enter the auction items into eBay.

1.) Include the class file in your script:

    include 'inc_ebay_de.php';
  
2. ) Create an instance of ebay_de (make an object)  
  
    $ebay = new ebay_de( '3619880818' );
    
The number in parantheses is the eBay auction number. 
You find the number in your eBay-url
    
    http://cgi.ebay.de/ws/eBayISAPI.dll?ViewItem&amp;item=3619880818
    
it is located after the string "item="
    
3. ) Use the function showdata() to show the significant data:

    $ebay->showdata();
    
The function showdata can take 3 parameters:

 - a class name for the cells <td>
 - a class name for the header cell <th>
 - a target name

by default all parameters are empty. If you want to use the class names
you have to define a <style type="text/css">...</style> section in the 
<head> of your page.

Here is an example of the classes used in the www.ingoknito.de page
where I promote a program:

<style type="text/css">
<!--
  .smalltd{
    font-size: x-small;
    color : navy;
    background-color: #ffffe8;
  }
  
  .smallth{
    font-size: small;
    color : navy;
    background-color: #ffffe8;
    font-weight: bold;
  }
-->
</style>

I use this classes with shodata() like this: 

  $ebay->showdata('smalltd', 'smallth', '_blank');
  
'_blank' is not a class but a special target name for a new browser
window.

          
  Files folder image Files  
File Role Description
Accessible without login Plain text file ebay_topangebote.php Example Show the auctions found on a ebay page with showdata()
Plain text file inc_ebay_de.php Class Get informations from a German eBay auction
Accessible without login Plain text file readme_ebay_de.txt Doc. How to use this class
Accessible without login Plain text file test_inc_ebay_de.php Example Implementation demo

 Version Control Unique User Downloads Download Rankings  
 0%Total:1,999All time:1,869
 This week:0This week:1,104Up
 User Ratings  
 
 All time
Utility:93%StarStarStarStarStar
Consistency:81%StarStarStarStarStar
Documentation:68%StarStarStarStar
Examples:81%StarStarStarStarStar
Tests:-
Videos:-
Overall:70%StarStarStarStar
Rank:206