mirror of
https://github.com/etienne-hd/lbc.git
synced 2026-05-01 11:17:49 +02:00
style(examples): apply ruff formatting to sample scripts
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user