Spaces:
Running
Running
Update main.py
Browse files
main.py
CHANGED
@@ -598,17 +598,17 @@ async def _run_apify_actor_for_web_content(url: str, api_token: str, actor_id: s
|
|
598 |
# --- END ADDED PROXY CONFIG ---
|
599 |
}
|
600 |
logger.debug(f"{log_prefix} Using input format for Default YT Actor ({APIFY_ACTOR_ID}) with Residential Proxy")
|
601 |
-
|
602 |
-
|
603 |
-
|
604 |
-
|
605 |
-
|
606 |
-
|
607 |
-
|
608 |
-
|
609 |
-
|
610 |
-
|
611 |
-
|
612 |
# --- END ADDED PROXY CONFIG ---
|
613 |
}
|
614 |
logger.debug(f"{log_prefix} Using input format for Structured YT Actor ({APIFY_STRUCTURED_YT_ACTOR_ID}) with Residential Proxy")
|
|
|
598 |
# --- END ADDED PROXY CONFIG ---
|
599 |
}
|
600 |
logger.debug(f"{log_prefix} Using input format for Default YT Actor ({APIFY_ACTOR_ID}) with Residential Proxy")
|
601 |
+
elif actor_id == APIFY_STRUCTURED_YT_ACTOR_ID:
|
602 |
+
# Input specific to the Structured YT Actor β wrap your single URL in a list
|
603 |
+
run_input = {
|
604 |
+
"urls": [url], # β wrap your URL in a list
|
605 |
+
"proxyConfiguration": {
|
606 |
+
"useApifyProxy": True,
|
607 |
+
"apifyProxyGroups": ["RESIDENTIAL"],
|
608 |
+
},
|
609 |
+
"maxRetries": 5,
|
610 |
+
}
|
611 |
+
logger.debug(f"{log_prefix} Using list input format for Structured YT Actor ({actor_id}) with Residential Proxy")
|
612 |
# --- END ADDED PROXY CONFIG ---
|
613 |
}
|
614 |
logger.debug(f"{log_prefix} Using input format for Structured YT Actor ({APIFY_STRUCTURED_YT_ACTOR_ID}) with Residential Proxy")
|