Automates BaseLinker product description updates by logging into the BaseLinker panel, reading product IDs from a CSV, generating polished Polish descriptions with AI, and saving the updated content back through Selenium. The workflow stores cookies for faster logins and records processed IDs.
- Logs into BaseLinker using Selenium (cookies or credentials).
- Loads product IDs from
data/csv/numer_id.csv. - Generates new descriptions and benefits text via Perplexity/LangChain.
- Updates the main and secondary description fields.
- Writes progress to
data/csv/numer_id_recorded.csv.
- Python 3.13+
- uv (recommended) or a compatible environment manager
- Firefox or Chrome WebDriver installed and on your PATH
- Install dependencies:
uv sync
- Create a
.envfile with the required credentials and API key:EMAIL=you@example.com PASSWORD=your_password PPLX_API_KEY=your_perplexity_key
- Provide the input CSV at
data/csv/numer_id.csvwith product IDs in the first column.
uv run run_code.pyrun_code.py exposes a WorkflowConfig model for:
email,passwordusername(cookie namespace)headless(defaultTrue)browser(firefoxorchrome)
Adjust these by editing run_code.py or wiring them into your own entry point.
- Cookies:
data/cookies/{username}_pracuj_cookies.(pkl|json) - Processed IDs:
data/csv/numer_id_recorded.csv
- Make sure the WebDriver binary matches your browser version.
- The script opens the BaseLinker inventory URL for each product ID.