mirror of
https://gitlab.dit.htwk-leipzig.de/fsr-im/tools/flatscraper.git
synced 2025-07-24 07:28:48 +02:00
add initial scraping functionality and related utilities
This commit is contained in:
12
test.py
Normal file
12
test.py
Normal file
@ -0,0 +1,12 @@
|
||||
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)
|
Reference in New Issue
Block a user