mirror of
https://gitlab.dit.htwk-leipzig.de/fsr-im/tools/flatscraper.git
synced 2026-01-16 20:12:26 +01:00
feat: automate session cookie retrieval and remove manual session ID setup
This commit is contained in:
@@ -37,8 +37,7 @@ You can run the bot natively on your machine or use a Docker image. The requirem
|
||||
### 1. Environment Setup
|
||||
|
||||
Ensure that the `.env` file is configured correctly. An example is available in the `sample.env` file. Copy it to `.env` and fill in the required values.
|
||||
The `SAP_SESSIONID` and `COOKIE_SESSSION` are obtained after performing a search on the LWB website. Use your browser's developer tools to locate them in local storage.
|
||||
*Future versions will include automatic form processing to obtain a valid session ID.*
|
||||
You no longer need to set `SAP_SESSIONID` or `COOKIE_SESSION` manually. The scraper opens the LWB portal with a headless browser, clicks “Ich suche eine Wohnung”, opens “Immobiliensuche” → “MEHR ANZEIGEN”, sets the maximum results to 1000, clicks “Suchen”, and extracts session cookies automatically.
|
||||
|
||||
### 2. Python Environment
|
||||
|
||||
|
||||
Reference in New Issue
Block a user