client.start(...)
-
-
-
from scrapybara import Scrapybara client = Scrapybara( api_key="YOUR_API_KEY", ) client.start()
-
-
-
instance_type:
typing.Optional[DeploymentConfigInstanceType]
-
timeout_hours:
typing.Optional[float]
-
request_options:
typing.Optional[RequestOptions]
— Request-specific configuration.
-
-
client.get(...)
-
-
-
from scrapybara import Scrapybara client = Scrapybara( api_key="YOUR_API_KEY", ) client.get( instance_id="instance_id", )
-
-
-
instance_id:
str
-
request_options:
typing.Optional[RequestOptions]
— Request-specific configuration.
-
-
client.instance.screenshot(...)
-
-
-
from scrapybara import Scrapybara client = Scrapybara( api_key="YOUR_API_KEY", ) client.instance.screenshot( instance_id="instance_id", )
-
-
-
instance_id:
str
-
request_options:
typing.Optional[RequestOptions]
— Request-specific configuration.
-
-
client.instance.get_stream_url(...)
-
-
-
from scrapybara import Scrapybara client = Scrapybara( api_key="YOUR_API_KEY", ) client.instance.get_stream_url( instance_id="instance_id", )
-
-
-
instance_id:
str
-
request_options:
typing.Optional[RequestOptions]
— Request-specific configuration.
-
-
client.instance.computer(...)
-
-
-
from scrapybara import Scrapybara client = Scrapybara( api_key="YOUR_API_KEY", ) client.instance.computer( instance_id="instance_id", action="key", )
-
-
-
instance_id:
str
-
action:
Action
-
coordinate:
typing.Optional[typing.Sequence[int]]
-
text:
typing.Optional[str]
-
request_options:
typing.Optional[RequestOptions]
— Request-specific configuration.
-
-
client.instance.bash(...)
-
-
-
from scrapybara import Scrapybara client = Scrapybara( api_key="YOUR_API_KEY", ) client.instance.bash( instance_id="instance_id", )
-
-
-
instance_id:
str
-
command:
typing.Optional[str]
-
restart:
typing.Optional[bool]
-
request_options:
typing.Optional[RequestOptions]
— Request-specific configuration.
-
-
client.instance.edit(...)
-
-
-
from scrapybara import Scrapybara client = Scrapybara( api_key="YOUR_API_KEY", ) client.instance.edit( instance_id="instance_id", command="view", path="path", )
-
-
-
instance_id:
str
-
command:
Command
-
path:
str
-
file_text:
typing.Optional[str]
-
view_range:
typing.Optional[typing.Sequence[int]]
-
old_str:
typing.Optional[str]
-
new_str:
typing.Optional[str]
-
insert_line:
typing.Optional[int]
-
request_options:
typing.Optional[RequestOptions]
— Request-specific configuration.
-
-
client.instance.stop(...)
-
-
-
from scrapybara import Scrapybara client = Scrapybara( api_key="YOUR_API_KEY", ) client.instance.stop( instance_id="instance_id", )
-
-
-
instance_id:
str
-
request_options:
typing.Optional[RequestOptions]
— Request-specific configuration.
-
-
client.instance.pause(...)
-
-
-
from scrapybara import Scrapybara client = Scrapybara( api_key="YOUR_API_KEY", ) client.instance.pause( instance_id="instance_id", )
-
-
-
instance_id:
str
-
request_options:
typing.Optional[RequestOptions]
— Request-specific configuration.
-
-
client.instance.resume(...)
-
-
-
from scrapybara import Scrapybara client = Scrapybara( api_key="YOUR_API_KEY", ) client.instance.resume( instance_id="instance_id", )
-
-
-
instance_id:
str
-
timeout_hours:
typing.Optional[float]
-
request_options:
typing.Optional[RequestOptions]
— Request-specific configuration.
-
-
client.agent.act(...)
-
-
-
from scrapybara import Scrapybara client = Scrapybara( api_key="YOUR_API_KEY", ) client.agent.act( instance_id="instance_id", cmd="cmd", )
-
-
-
instance_id:
str
-
cmd:
str
-
include_screenshot:
typing.Optional[bool]
-
model:
typing.Optional[Model]
-
request_options:
typing.Optional[RequestOptions]
— Request-specific configuration.
-
-
client.agent.scrape(...)
-
-
-
from scrapybara import Scrapybara client = Scrapybara( api_key="YOUR_API_KEY", ) client.agent.scrape( instance_id="instance_id", cmd="cmd", )
-
-
-
instance_id:
str
-
cmd:
str
-
schema:
typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]]
-
include_screenshot:
typing.Optional[bool]
-
model:
typing.Optional[Model]
-
request_options:
typing.Optional[RequestOptions]
— Request-specific configuration.
-
-
client.browser.start(...)
-
-
-
from scrapybara import Scrapybara client = Scrapybara( api_key="YOUR_API_KEY", ) client.browser.start( instance_id="instance_id", )
-
-
-
instance_id:
str
-
request_options:
typing.Optional[RequestOptions]
— Request-specific configuration.
-
-
client.browser.get_cdp_url(...)
-
-
-
from scrapybara import Scrapybara client = Scrapybara( api_key="YOUR_API_KEY", ) client.browser.get_cdp_url( instance_id="instance_id", )
-
-
-
instance_id:
str
-
request_options:
typing.Optional[RequestOptions]
— Request-specific configuration.
-
-
client.browser.authenticate(...)
-
-
-
Authenticate browser with Anon for all available apps
-
-
-
from scrapybara import Scrapybara client = Scrapybara( api_key="YOUR_API_KEY", ) client.browser.authenticate( instance_id="instance_id", context_id="context_id", )
-
-
-
instance_id:
str
-
context_id:
str
-
request_options:
typing.Optional[RequestOptions]
— Request-specific configuration.
-
-
client.browser.stop(...)
-
-
-
from scrapybara import Scrapybara client = Scrapybara( api_key="YOUR_API_KEY", ) client.browser.stop( instance_id="instance_id", )
-
-
-
instance_id:
str
-
request_options:
typing.Optional[RequestOptions]
— Request-specific configuration.
-
-
client.code.execute(...)
-
-
-
from scrapybara import Scrapybara client = Scrapybara( api_key="YOUR_API_KEY", ) client.code.execute( instance_id="instance_id", code="code", )
-
-
-
instance_id:
str
-
code:
str
-
kernel_name:
typing.Optional[str]
-
timeout:
typing.Optional[int]
-
request_options:
typing.Optional[RequestOptions]
— Request-specific configuration.
-
-
client.notebook.list_kernels(...)
-
-
-
from scrapybara import Scrapybara client = Scrapybara( api_key="YOUR_API_KEY", ) client.notebook.list_kernels( instance_id="instance_id", )
-
-
-
instance_id:
str
-
request_options:
typing.Optional[RequestOptions]
— Request-specific configuration.
-
-
client.notebook.create(...)
-
-
-
from scrapybara import Scrapybara client = Scrapybara( api_key="YOUR_API_KEY", ) client.notebook.create( instance_id="instance_id", name="name", )
-
-
-
instance_id:
str
-
name:
str
-
kernel_name:
typing.Optional[str]
-
request_options:
typing.Optional[RequestOptions]
— Request-specific configuration.
-
-
client.notebook.get(...)
-
-
-
from scrapybara import Scrapybara client = Scrapybara( api_key="YOUR_API_KEY", ) client.notebook.get( instance_id="instance_id", notebook_id="notebook_id", )
-
-
-
instance_id:
str
-
notebook_id:
str
-
request_options:
typing.Optional[RequestOptions]
— Request-specific configuration.
-
-
client.notebook.delete(...)
-
-
-
from scrapybara import Scrapybara client = Scrapybara( api_key="YOUR_API_KEY", ) client.notebook.delete( instance_id="instance_id", notebook_id="notebook_id", )
-
-
-
instance_id:
str
-
notebook_id:
str
-
request_options:
typing.Optional[RequestOptions]
— Request-specific configuration.
-
-
client.notebook.add_cell(...)
-
-
-
from scrapybara import Scrapybara client = Scrapybara( api_key="YOUR_API_KEY", ) client.notebook.add_cell( instance_id="instance_id", notebook_id="notebook_id", type="code", content="content", )
-
-
-
instance_id:
str
-
notebook_id:
str
-
type:
CellType
-
content:
str
-
metadata:
typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]]
-
request_options:
typing.Optional[RequestOptions]
— Request-specific configuration.
-
-
client.notebook.execute_cell(...)
-
-
-
from scrapybara import Scrapybara client = Scrapybara( api_key="YOUR_API_KEY", ) client.notebook.execute_cell( instance_id="instance_id", notebook_id="notebook_id", cell_id="cell_id", )
-
-
-
instance_id:
str
-
notebook_id:
str
-
cell_id:
str
-
timeout:
typing.Optional[int]
-
request_options:
typing.Optional[RequestOptions]
— Request-specific configuration.
-
-
client.notebook.execute(...)
-
-
-
from scrapybara import Scrapybara client = Scrapybara( api_key="YOUR_API_KEY", ) client.notebook.execute( instance_id="instance_id", notebook_id="notebook_id", )
-
-
-
instance_id:
str
-
notebook_id:
str
-
timeout:
typing.Optional[int]
-
request_options:
typing.Optional[RequestOptions]
— Request-specific configuration.
-
-
client.file.read(...)
-
-
-
from scrapybara import Scrapybara client = Scrapybara( api_key="YOUR_API_KEY", ) client.file.read( instance_id="instance_id", path="path", )
-
-
-
instance_id:
str
-
path:
str
-
encoding:
typing.Optional[str]
-
request_options:
typing.Optional[RequestOptions]
— Request-specific configuration.
-
-
client.file.write(...)
-
-
-
from scrapybara import Scrapybara client = Scrapybara( api_key="YOUR_API_KEY", ) client.file.write( instance_id="instance_id", path="path", content="content", )
-
-
-
instance_id:
str
-
path:
str
-
content:
str
-
encoding:
typing.Optional[str]
-
request_options:
typing.Optional[RequestOptions]
— Request-specific configuration.
-
-
client.file.upload(...)
-
-
-
from scrapybara import Scrapybara client = Scrapybara( api_key="YOUR_API_KEY", ) client.file.upload( instance_id="instance_id", path="path", content="content", )
-
-
-
instance_id:
str
-
path:
str
-
content:
str
-
request_options:
typing.Optional[RequestOptions]
— Request-specific configuration.
-
-
client.file.download(...)
-
-
-
from scrapybara import Scrapybara client = Scrapybara( api_key="YOUR_API_KEY", ) client.file.download( instance_id="instance_id", path="path", )
-
-
-
instance_id:
str
-
path:
str
-
request_options:
typing.Optional[RequestOptions]
— Request-specific configuration.
-
-
client.env.get(...)
-
-
-
from scrapybara import Scrapybara client = Scrapybara( api_key="YOUR_API_KEY", ) client.env.get( instance_id="instance_id", )
-
-
-
instance_id:
str
-
request_options:
typing.Optional[RequestOptions]
— Request-specific configuration.
-
-
client.env.set(...)
-
-
-
from scrapybara import Scrapybara client = Scrapybara( api_key="YOUR_API_KEY", ) client.env.set( instance_id="instance_id", variables={"key": "value"}, )
-
-
-
instance_id:
str
-
variables:
typing.Dict[str, str]
-
request_options:
typing.Optional[RequestOptions]
— Request-specific configuration.
-
-
client.env.delete(...)
-
-
-
from scrapybara import Scrapybara client = Scrapybara( api_key="YOUR_API_KEY", ) client.env.delete( instance_id="instance_id", keys=["keys"], )
-
-
-
instance_id:
str
-
keys:
typing.Sequence[str]
-
request_options:
typing.Optional[RequestOptions]
— Request-specific configuration.
-
-