style(examples): apply ruff formatting to sample scripts

This commit is contained in:
etienne-hd
2026-04-29 13:53:46 +02:00
parent cbdf3d7821
commit 4623b0627a
6 changed files with 57 additions and 45 deletions

View File

@@ -2,6 +2,7 @@
import lbc
def main() -> None:
# Initialize the Leboncoin API client
client = lbc.Client()
@@ -10,12 +11,13 @@ def main() -> None:
result = client.search(
url="https://www.leboncoin.fr/recherche?category=10&text=maison&locations=Paris__48.86023250788424_2.339006433295173_9256_30000",
page=1,
limit=35
limit=35,
)
# Print basic info about each ad
for ad in result.ads:
print(f"{ad.id} | {ad.url} | {ad.subject} | {ad.price}€ | Seller: {ad.user}")
if __name__ == "__main__":
main()