A small Python package to request listings from marktplaats.nl
Project description
marktplaats-py
A small Python package to request listings from marktplaats.nl
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.1.tar.gz
(3.0 kB
view hashes)
Built Distribution
Close
Hashes for marktplaats-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | da4decd710c9f7709b660972cfbf18eae6a24db6e38c0e14f3f1cab13eddbaac |
|
MD5 | d232e5879700ee363cb9a9d681ef4938 |
|
BLAKE2b-256 | ecb09b280ec59228fe7faffe0d2065b1921c3113d076d968f8b571e51343c318 |