ProtocolsFilesystemRead, write, upload and download files in your Scrapybara instancePythonTypeScript1Start an instance1from scrapybara import Scrapybara23client = Scrapybara(api_key="your_api_key")4instance = client.start(instance_type="small")2Write a file1# Write content to a file2instance.file.write(3 path="/path/to/file.txt",4 content="Hello from Scrapybara!",5 encoding="utf-8" # Optional: specify encoding6)3Read a file1# Read file content2response = instance.file.read(3 path="/path/to/file.txt",4 encoding="utf-8" # Optional: specify encoding5)6content = response.content4Upload a file1# Upload a file to the instance2instance.file.upload(3 path="/destination/path/file.txt",4 content="file_content_as_string"5)5Download a file1# Download a file from the instance2response = instance.file.download(3 path="/path/to/file.txt"4)5downloaded_content = response.contentBuilt with