from meibelai import Meibelai
import os
with Meibelai(
api_key_header=os.getenv("MEIBELAI_API_KEY_HEADER", ""),
) as m_client:
res = m_client.datasources.add_datasource(customer_id="<id>", project_id="<id>", name="<value>", description="smooth hmph geez key", recurrence="<value>", object_storage_config=None, web_config={
"base_url": "https://stable-availability.org/",
"javascript_render": False,
"wait_for_selector": "<value>",
"domains": [
{
"domain": "mild-pearl.net",
"limit_pattern": "<value>",
"exclude_pattern": "<value>",
"ingestible": True,
"expandable": True,
},
],
"authentication": {
"username": "Theodore_Kris60",
"password": "Xn9ZOj5FRoS52ke",
},
})
# Handle response
print(res)
{
"id": "<string>"
}
from meibelai import Meibelai
import os
with Meibelai(
api_key_header=os.getenv("MEIBELAI_API_KEY_HEADER", ""),
) as m_client:
res = m_client.datasources.add_datasource(customer_id="<id>", project_id="<id>", name="<value>", description="smooth hmph geez key", recurrence="<value>", object_storage_config=None, web_config={
"base_url": "https://stable-availability.org/",
"javascript_render": False,
"wait_for_selector": "<value>",
"domains": [
{
"domain": "mild-pearl.net",
"limit_pattern": "<value>",
"exclude_pattern": "<value>",
"ingestible": True,
"expandable": True,
},
],
"authentication": {
"username": "Theodore_Kris60",
"password": "Xn9ZOj5FRoS52ke",
},
})
# Handle response
print(res)
{
"id": "<string>"
}
AddDatasourceRequest
Successful Response
AddDatasourceResponse