A small Python package to request listings from marktplaats.nl
Project description
marktplaats-py
A small Python package to request listings from marktplaats.nl
Installing
pip3 install marktplaats
Example
This is an example on how to use the library:
from marktplaats import Marktplaats
search = Marktplaats("fiets", # Search query
zip_code="1016LV", # Zip code to base distance from
distance=100000, # Max distance from the zip code for listings
price_from=0, # Lowest price to search for
price_to=100, # Highest price to search for
limit=5, # Max listings (page size)
offset=0) # Offset for listings (page)
listings = search.get_listings()
for listing in listings:
print(listing.title)
print(listing.description)
print(listing.seller.name)
print(listing.price)
print(listing.link)
for image in listing.images:
print(image.medium)
print("-----------------------------")
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
marktplaats-0.0.2.tar.gz
(3.0 kB
view hashes)
Built Distribution
Close
Hashes for marktplaats-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cf4e56b1b65087e7560801120912784c0c6334e370a0886b2976721c85b2ae2e |
|
MD5 | 86c7f9a2ef6491785426b01dbaeeaeb2 |
|
BLAKE2b-256 | b5f635a141fa8fcad830dd6648f7c0aa84d9efa4ab25645666b5dd9d3aafa6cc |