Skip to main content

suumo_scraping

【SUUMO】不動産売買・住宅購入・賃貸情報ならリクルートの不動産ポータルサイトのデータをスクレイピングにより取得します。

Warning

SUUMOのご利用規約をよく読んでからご利用ください。不正の目的をもって利用する行為や商業目的で利用する行為(株式会社リクルートが認める場合を除く)は禁止されているので注意してください。

使い方

インストール

pip install suumo_scraping

データ取得

【SUUMO】不動産売買・住宅購入・賃貸情報ならリクルートの不動産ポータルサイトの賃貸物件でデータを取得したい条件で検索し、そのURLをcollect_rental_data関数に渡せば、物件情報を格納したデータをリストで取得できます。

例)

import suumo_scraping

url = 'https://suumo.jp/jj/chintai/ichiran/FR301FC001/?ar=060&bs=040&ra=026&cb=0.0&ct=9999999&et=9999999&cn=9999999&mb=0&mt=9999999&shkr1=03&shkr2=03&shkr3=03&shkr4=03&fw2=&ek=242012011&rn=2420'
results = suumo_scraping.collect_rental_data(url)

データの加工やCSVへの出力などは、pandasを利用するのが便利です。

例)

import pandas as pd
import suumo_scraping

url = 'https://suumo.jp/jj/chintai/ichiran/FR301FC001/?ar=060&bs=040&ra=026&cb=0.0&ct=9999999&et=9999999&cn=9999999&mb=0&mt=9999999&shkr1=03&shkr2=03&shkr3=03&shkr4=03&fw2=&ek=242012011&rn=2420'
results = suumo_scraping.collect_rental_data(url)

# 結果をpandasのデータフレームに変換し、CSVに出力
columns = results.pop(0)
df = pd.DataFrame(results, columns=columns)
df.to_csv('suumo_output.csv')

著者

浅野直樹

ライセンス

GNU Affero General Public License v3.0

Metadata

Release files for suumo-scraping 0.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for suumo-scraping 0.0.1
File Size Uploaded
suumo_scraping-0.0.1.tar.gz 17.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for suumo-scraping 0.0.1
File Interpreter ABI Platform
suumo_scraping-0.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 33.7 kB

Release files / suumo_scraping-0.0.1.tar.gz

Download URL suumo_scraping-0.0.1.tar.gz
Size 17.3 kB
Tags Source
SHA-256 checksum
How to use checksums
2c5525a29f1b2193e783c9895e9f5e2da3af601b278e71aae5265eea431d8c99
BLAKE2b-256 checksum
How to use checksums
d621a105b11097fd31fa7c8aa811e94b67a565aca508da2cc74f4ff896356e08
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.4

Release files / suumo_scraping-0.0.1-py3-none-any.whl

Download URL suumo_scraping-0.0.1-py3-none-any.whl
Size 16.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a3e2719d47e48e4ddafe8a034553faa0431082b39bcfcbbf96a799c3912d6da9
BLAKE2b-256 checksum
How to use checksums
ccc3b8d7097a0f6b9b77a75c5913b1e2b0837876d412f994bdd6d6a9f29844d7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.4

Release history Release notifications | RSS feed

This release

0.0.1 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page