ProtocolsEnvironment VariablesManage environment variables in your Scrapybara instancePythonTypeScript1Start an instance1from scrapybara import Scrapybara23client = Scrapybara(api_key="your_api_key")4instance = client.start(instance_type="small")2Set environment variables1# Set one or more environment variables2instance.env.set(3 variables={4 "API_KEY": "secret_key",5 "DEBUG": "true",6 "DATABASE_URL": "postgresql://localhost:5432/db"7 }8)3Get environment variables1# Get all environment variables2response = instance.env.get()3env_vars = response.variables4Delete environment variables1# Delete specific environment variables2instance.env.delete(3 keys=["API_KEY", "DEBUG"]4)Built with