# Help needed ebay classified plugin

**URL:** <https://discourse.devontechnologies.com/t/help-needed-ebay-classified-plugin/17448>\
**Category:** Automation\
**Created:** [June 11, 2014, 12:33pm UTC](https://discourse.devontechnologies.com/t/help-needed-ebay-classified-plugin/17448 "2014-06-11T12:33:03Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![joeweb](https://discourse.devontechnologies.com/user_avatar/discourse.devontechnologies.com/joeweb/32/5286_2.png) [@joeweb](https://discourse.devontechnologies.com/u/joeweb)\
**Post date:** [June 11, 2014, 12:33pm UTC](https://discourse.devontechnologies.com/t/help-needed-ebay-classified-plugin/17448/1 "2014-06-11T12:33:03Z")

</div>

Hello,

I’m trying to develop a plugin that searches the german website [kleinanzeigen.ebay.de](http://kleinanzeigen.ebay.de)" for a given product name etc.

The “next” page link shows the following url:  
[http://kleinanzeigen.ebay.de/anzeigen/s-seite:2/tiffany/k0](http://kleinanzeigen.ebay.de/anzeigen/s-seite:2/tiffany/k0)  
(hint: seite = page)  
and the result page in the browser talks about 2.800 adverts on ebay for that keyword.  
My plugin loads 148 files and shows 68 results, this seems not complete.

The protocol tells me that the “interesting” next pages are “duplicates”, but I would like DA to scan these pages and show me the results.

 ![protocol.jpg](https://devontech-discourse.s3.dualstack.us-east-1.amazonaws.com/uploads/original/2X/5/5220da985afb079efe4a0dd96faea3e7592f807e.jpeg)

Any idea what I need to change here?

regards

Joern

```auto
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
	<key>Description</key>
	<string>Durchsucht das Web per &lt;kleinanzeigen.ebay.de&gt;.</string>
	<key>EngineUrl</key>
	<string>http://kleinanzeigen.ebay.de/anzeigen/_agentOffset_/_agentQuery_/k0</string>
	<key>Identifier</key>
	<string>kleinanzeigen.ebay.de</string>
	<key>Info</key>
	<string>1 Kleinanzeigen Plugin</string>
	<key>Name</key>
	<string>1 Kleinanzeigen</string>
	<key>OffsetPerPage</key>
	<integer>100</integer>
	<key>Operators</key>
	<integer>59</integer>
	<key>ParseLinks</key>
	<true/>
	<key>ResultsPerPage</key>
	<integer>100</integer>
	<key>Start</key>
	<integer>0</integer>
	<key>Version</key>
	<string>1.0</string>
</dict>
</plist>

```

---

<div class="post-metadata">

**Author:** ![cgrunenberg](https://discourse.devontechnologies.com/user_avatar/discourse.devontechnologies.com/cgrunenberg/32/7172_2.png) [@cgrunenberg](https://discourse.devontechnologies.com/u/cgrunenberg)\
**Post date:** [June 11, 2014, 12:43pm UTC](https://discourse.devontechnologies.com/t/help-needed-ebay-classified-plugin/17448/2 "2014-06-11T12:43:41Z")

</div>

There are several minor issues but the most important one is that the plugin doesn’t define which links should be used and therefore uses all of them. Here’s a revised plugin adding a LinksMatching key:

```auto

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
	<key>Description</key>
	<string>Durchsucht das Web per &lt;kleinanzeigen.ebay.de&gt;.</string>
	<key>EngineUrl</key>
	<string>http://kleinanzeigen.ebay.de/anzeigen/s-seite:_agentOffset_/_agentQuery_/k0</string>
	<key>Identifier</key>
	<string>kleinanzeigen.ebay.de</string>
	<key>Info</key>
	<string>1 Kleinanzeigen Plugin</string>
	<key>LinksMatching</key>
	<string>/anzeigen/s-anzeige/</string>
	<key>Name</key>
	<string>1 Kleinanzeigen</string>
	<key>OffsetPerPage</key>
	<integer>1</integer>
	<key>Operators</key>
	<integer>0</integer>
	<key>ResultsPerPage</key>
	<integer>25</integer>
	<key>Start</key>
	<integer>1</integer>
	<key>Version</key>
	<string>1.0</string>
</dict>
</plist>

```

---

<div class="post-metadata">

**Author:** ![joeweb](https://discourse.devontechnologies.com/user_avatar/discourse.devontechnologies.com/joeweb/32/5286_2.png) [@joeweb](https://discourse.devontechnologies.com/u/joeweb)\
**Post date:** [June 11, 2014, 2:37pm UTC](https://discourse.devontechnologies.com/t/help-needed-ebay-classified-plugin/17448/3 "2014-06-11T14:37:07Z")

</div>

works great! Just tried it in combination with a search set and received my 500 pages.

Just two more questions:  
How did you develop this “LinksMatching key”?  
I don’t understand where the “anzeige” in “s-anzeige” comes from. I believe the “S” comes from “Seite” (=page) but how did you come up with the “anzeige” behind the s- ?

Second one:  
When I check the protocol I see this kind of error message, is that of any concerns re to the results?

 ![protocol.jpg](https://devontech-discourse.s3.dualstack.us-east-1.amazonaws.com/uploads/original/2X/5/5220da985afb079efe4a0dd96faea3e7592f807e.jpeg)

Thanks for your great help,

Joern

---

<div class="post-metadata">

**Author:** ![joeweb](https://discourse.devontechnologies.com/user_avatar/discourse.devontechnologies.com/joeweb/32/5286_2.png) [@joeweb](https://discourse.devontechnologies.com/u/joeweb)\
**Post date:** [June 11, 2014, 3:20pm UTC](https://discourse.devontechnologies.com/t/help-needed-ebay-classified-plugin/17448/4 "2014-06-11T15:20:15Z")

</div>

I believe I’m closer to the “linksmatching” solution, understood how you did that for the “Kleinanzeigen” script.  
Anyway I tried it for eBay and it seems that I still overlook something:

ebay next page link:  
[http://www.ebay.de/sch/Uhren-Schmuck-/281/i.html?\_from=R40&\_nkw=tiffany&\_pgn=5&\_skc=200&rt=nc  
 ](http://www.ebay.de/sch/Uhren-Schmuck-/281/i.html?_from=R40&_nkw=tiffany&_pgn=5&_skc=200&rt=nc)  
ebay direct auction link  
[http://www.ebay.de/itm/Armband-Tiffany-Co-Sterling-Silber-Ruckkehr-Zu-Tiffany-Herz-Gebogen-/121354858054?pt=DE\_Uhren\_Schmuck\_Echtschmuck&hash=item1c41502e46](http://www.ebay.de/itm/Armband-Tiffany-Co-Sterling-Silber-Ruckkehr-Zu-Tiffany-Herz-Gebogen-/121354858054?pt=DE_Uhren_Schmuck_Echtschmuck&hash=item1c41502e46)

```auto
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
	<key>Description</key>
	<string>Durchsucht &lt;www.ebay.de&gt;.</string>
	<key>EngineUrl</key>
	<string>http://www.ebay.de/sch/Uhren-Schmuck-/281/i.html?_from=R40&amp;_nkw=_agentQuery_&amp;_pgn=_agentOffset_&amp;_skc=50&amp;rt=nc</string>
	<key>Identifier</key>
	<string>www.ebay.de</string>
	<key>Info</key>
	<string>eBay Test Plugin</string>
	<key>LinksMatching</key>
	<string>/itm/</string>
	<key>Name</key>
	<string>eBay Test</string>
	<key>OffsetPerPage</key>
	<integer>1</integer>
	<key>Operators</key>
	<integer>0</integer>
	<key>ResultsPerPage</key>
	<integer>25</integer>
	<key>Start</key>
	<integer>1</integer>
	<key>Version</key>
	<string>1.0</string>
</dict>
</plist>

```

I receive only 50 files and 2 results:

 ![protocol3.jpg](https://devontech-discourse.s3.dualstack.us-east-1.amazonaws.com/uploads/original/2X/0/0f12bf7042e1e91d4e6ef653b7e580bebafe015c.jpeg)

---

<div class="post-metadata">

**Author:** ![cgrunenberg](https://discourse.devontechnologies.com/user_avatar/discourse.devontechnologies.com/cgrunenberg/32/7172_2.png) [@cgrunenberg](https://discourse.devontechnologies.com/u/cgrunenberg)\
**Post date:** [June 12, 2014, 6:16am UTC](https://discourse.devontechnologies.com/t/help-needed-ebay-classified-plugin/17448/5 "2014-06-12T06:16:09Z")

</div>

> [@joeweb](#):
>
> How did you develop this “LinksMatching key”?

I just had a look at the URL of each result. The URL of the search results pages looks like this…

[kleinanzeigen.ebay.de/anzeigen/s … tiffany/k0](http://kleinanzeigen.ebay.de/anzeigen/s-seite:1/tiffany/k0)

…and the URL of each result like this…

[kleinanzeigen.ebay.de/anzeigen/s … ref=search](http://kleinanzeigen.ebay.de/anzeigen/s-anzeige/tiffany-kleine-stehlampe,tischleuchte,leuchte-mit-fuss,lampe/214022043-82-1901?ref=search)

> [@](#):
>
> When I check the protocol I see this kind of error message, is that of any concerns re to the results?

The updated plugin doesn’t cause any duplicates over here (and shouldn’t use the URLs shown on the screenshot).

---

<div class="post-metadata">

**Author:** ![system](https://devontech-discourse.s3.dualstack.us-east-1.amazonaws.com/uploads/original/2X/4/4e6ff70c96be2eb307a274d890bba8d71ba671b3.png) [@system](https://discourse.devontechnologies.com/u/system)\
**Post date:** [January 21, 2022, 11:21am UTC](https://discourse.devontechnologies.com/t/help-needed-ebay-classified-plugin/17448/6 "2022-01-21T11:21:49Z")

</div>


