Loading page...Загружаем страницу...正在加载页面...
AtlasRepo

How to Scrape Kleinanzeigen Listings with Python

说明与用途

Python脚本调用Apify Actor,从Kleinanzeigen.de抓取二手手机广告,返回结构化JSON记录,耗时9.3秒。

问题

Collecting used‑phone ads from Kleinanzeigen.de manually is slow and limited to 25 ads per page.

结果

The benchmark run with the given parameters finished in 9.3 seconds and returned 60 ads.

工作流

  • Install Python 3.11+ and the Apify API client with pip install apify-client
  • Create a free Apify account and obtain an API token
  • Write a Python script that creates an ApifyClient, defines run_input with search parameters (e.g., searchQueries: ["iphone 13"], sellers: "private", shippingOnly: true, maxItems: 60, maxPages: 4), and calls the actor reventadata/kleinanzeigen-scraper
  • Iterate over the actor’s default dataset and print or store each item’s fields
  • Export the dataset from Apify Console as JSON, CSV or Excel if needed

证据

Our benchmark run (configured with searchQueries: ["iphone 13"], sellers: "private", shippingOnly: true, maxItems: 60 and maxPages: 4) finished in 9.3 seconds and returned 60 ads.

来源

The default run reads the public search result cards only. The seller fields (sellerName, sellerKind, sellerSince and a few others) stay null unless you turn on fetchDetails.

来源

The Actor has more switches than the example uses: ... sellers: "private" means "no PRO badge".

来源

  • 记录日期: 2026-10-23T21:26:07.901Z