mirror of
https://gitlab.dit.htwk-leipzig.de/fsr-im/tools/flatscraper.git
synced 2025-07-15 11:08:48 +02:00
13 lines
366 B
Python
13 lines
366 B
Python
import src.lwb.scrape_image as scrape_image
|
|
|
|
# B000000502800 -> 50,28 m²
|
|
room = "B000000502800"
|
|
|
|
|
|
|
|
iamge = scrape_image.scrape_image("https://portal1s.easysquare.com/prorex/xmlforms/image.jpg?application=ESQ_IA_REOBJ&command=action&id=1EC8D4E6-191A-A827-47FF-72D8C5379070&name=get")
|
|
|
|
# save image
|
|
with open(f"image_{room}.jpg", "wb") as file:
|
|
file.write(iamge)
|