Skip to content

Marktplaats bridge - advertisement details and additional filters  #3959

Open
@Pizzabroodje

Description

@Pizzabroodje

Hello again,

I want to follow up on @Park0's comment here #3613 (comment)

He asked if I had figured out how to get the details of an advertisement on Marktplaats.

I wasn't using it at anymore at the moment. I just started using the bridge again tho with a fresh installation (a few days before the new release, just saw that, so will update again soon).

If you do a GET request to the URL of an ad, it returns all the info.
The description is under the class "Description-description", and the attributes are in the class "Attributes-list".
I'd suggest a checkbox to choose whether to load the details, and only do the second call if that's checked.

I guess pictures would also be possible.
The images are all in the "Thumbnails-scroll" class.

The image URLs here all end with "?rule=eps_14". This loads the thumbnails, limited to 64 pixels in width.
If you change this to "?rule=eps_84", you get the images it loads into the carousel when you hover over a thumbnail, limited to 498 pixels in width.
If you change this to "?rule=eps_86", you get the (as far as I know) highest possible resolution that it loads when you click on an image in the carousel, which is limited to 1024 pixels in width.

Downloading some random images (two per size), the thumbnails came to about 1KB.
The mid-size 16,4KB and 17,3KB, and the max-size 45,0KB and 54,7KB.

Basically any info about the ad can be extracted like this.

There's also some more filters you can use on each category. One that's very useful, especially for generating feeds like this, is offeredSince attribute.
I have this set to 'Gisteren', so that it only catches ads posted up until yesterday.

The condition (new, as good as new, used, etc.) and way of delivery (pickup, ship, or both) are two more filters that as far as I know are for every category, and are useful in certain searches.

Best regards,

Daniel

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions