Metadata-Version: 2.1
Name: marktplaats
Version: 0.0.1
Summary: A small Python package to request listings from marktplaats.nl
Project-URL: Homepage, https://github.com/jensjeflensje/marktplaats-py
Project-URL: Bug Tracker, https://github.com/jensjeflensje/marktplaats-py/issues
Author-email: Jens de Ruiter <me@jensderuiter.dev>
License-File: LICENSE
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Requires-Python: >=3.6
Description-Content-Type: text/markdown

# marktplaats-py
A small Python package to request listings from marktplaats.nl

## Example
This is an example on how to use the library:
```py
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("-----------------------------")
```