scrapingant

v1.0.1
com.mcparmory/scrapingant Checked 3 days ago Published 7 months ago

Scrape webpages, handle JavaScript and CAPTCHA, extract structured data

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

scrape_webpage Scrape Webpage

Scrape content from a webpage with optional browser rendering, JavaScript execution, and proxy configuration. Supports cookie injection, resource blocking, and element-specific wait conditions for dynamic content.

ParameterTypeDescription
url *stringThe target URL to scrape. Must be a valid, complete URL.
block_resourcestringResource types to block from loading in the browser (e.g., image, stylesheet, script, font). Can be specified multiple times for multiple types. Only applies when browser rendering is enabled. Useful…
browserbooleanWhether to render the page using a headless browser to execute JavaScript and load dynamic content. Enabled by default. Disable to retrieve raw server response only.
cookiesstringSession cookies to include with the scraping request, formatted as semicolon-separated key-value pairs (e.g., name1=value1;name2=value2). Useful for authenticated scraping.
js_snippetstringBase64-encoded JavaScript code to execute after the page loads in the browser. Only applies when browser rendering is enabled. Useful for custom interactions like scrolling or form submission.
proxy_countrystringCountry code for the proxy location (e.g., US, GB, DE). If not specified, a random country will be used. Only applies when using a proxy.
proxy_typestringProxy type for the request: datacenter (faster, shared IPs) or residential (slower, real user IPs). Defaults to datacenter.
return_page_sourcebooleanReturn the unaltered HTML source from the server without browser-based JavaScript rendering. Only applies when browser rendering is enabled. Useful for comparing server-side vs. client-side rendered c…
wait_for_selectorstringCSS selector of an element to wait for before returning results. The scraper will poll until the element appears in the DOM. Only applies when browser rendering is enabled. Useful for waiting on dynam…

scrape_webpage_submit Scrape Webpage Submit

Scrape content from a webpage using optional headless browser rendering, JavaScript execution, and proxy configuration. Supports cookie injection, resource blocking, and element-specific wait conditions for dynamic content.

ParameterTypeDescription
url *stringThe target URL to scrape. Must be a valid, complete URL.
block_resourcestringResource types to block from loading in the browser (e.g., image, stylesheet, script, font). Reduces bandwidth and speeds up scraping. Only applies when browser is enabled. Can be specified multiple t…
browserbooleanEnable headless browser rendering to execute JavaScript and handle dynamic content. Defaults to true. When disabled, only raw server response is returned.
cookiesstringHTTP cookies to include with the scraping request, formatted as semicolon-separated key-value pairs (e.g., name1=value1;name2=value2).
js_snippetstringBase64-encoded JavaScript code to execute after the page loads in the browser. Only applies when browser is enabled. Useful for interactions, scrolling, or data extraction.
proxy_countrystringCountry code for proxy location (e.g., US, GB, DE). If not specified, a random country is selected. Only applies when using a proxy.
proxy_typestringProxy type for the request: datacenter (faster, shared IPs) or residential (slower, real user IPs). Defaults to datacenter.
return_page_sourcebooleanReturn the unaltered page source as received from the server without JavaScript rendering. Only applies when browser is enabled. Defaults to false.
wait_for_selectorstringCSS selector of an element to wait for before returning results. The scraper will poll until the element appears or timeout occurs. Only applies when browser is enabled.

scrape_webpage_replace Scrape Webpage Replace

Scrape a webpage with optional browser rendering, JavaScript execution, and proxy configuration. Supports cookie injection, resource blocking, and element-based wait conditions for dynamic content.

ParameterTypeDescription
url *stringThe target URL to scrape. Must be a valid HTTP or HTTPS URL.
block_resourcestringResource types to block from loading in the browser (e.g., image, stylesheet, script, font). Can be specified multiple times for multiple types. Only applies when browser is enabled. Reduces bandwidth…
browserbooleanWhether to use a headless browser for scraping to render JavaScript and handle dynamic content. Enabled by default. Required for JS execution, page source capture, and element waiting.
cookiesstringCookies to include with the scraping request, formatted as semicolon-separated key-value pairs (e.g., name1=value1;name2=value2).
js_snippetstringBase64-encoded JavaScript code to execute after the page loads in the browser. Only applies when browser is enabled. Useful for interactions, scrolling, or data extraction.
proxy_countrystringCountry code for the proxy location (e.g., US, GB, DE). If not specified, a random country will be used. Only applies when using proxies.
proxy_typestringType of proxy to use for the request: datacenter (default) for speed or residential for authenticity. Datacenter proxies are faster; residential proxies better mimic real users.
return_page_sourcebooleanReturn the unaltered HTML returned by the server without JavaScript rendering. Only applies when browser is enabled. When true, JavaScript will not be executed.
wait_for_selectorstringCSS selector of an element to wait for before returning results. The scraper will poll until the element appears in the DOM. Only applies when browser is enabled.

scrape_webpage_modify Scrape Webpage Modify

Scrape a webpage with optional browser rendering, JavaScript execution, and proxy configuration. Supports waiting for dynamic content, blocking resources, and injecting custom scripts.

ParameterTypeDescription
url *stringThe target URL to scrape. Must be a valid HTTP or HTTPS URL.
block_resourcestringResource types to block from loading in the browser (e.g., image, stylesheet, script, font, xhr, fetch). Reduces bandwidth and speeds up scraping. Only applies when browser is enabled. Can be specifie…
browserbooleanWhether to use a headless browser for scraping to render JavaScript and handle dynamic content. Enabled by default. Required for JS execution, page waiting, and resource blocking features.
cookiesstringHTTP cookies to include with the scraping request, formatted as semicolon-separated key-value pairs (e.g., name1=value1;name2=value2).
js_snippetstringBase64-encoded JavaScript code to execute after the page loads in the browser. Only applies when browser is enabled. Useful for interactions, data extraction, or triggering additional content loads.
proxy_countrystringCountry code for the proxy location (e.g., US, GB, DE). If not specified, a random country will be used. Only applies when using a proxy.
proxy_typestringType of proxy to route the request through: datacenter (faster, shared IPs) or residential (slower, real user IPs). Defaults to datacenter.
return_page_sourcebooleanReturn the unaltered HTML source as received from the server without JavaScript rendering. Only applies when browser is enabled. Disabled by default.
wait_for_selectorstringCSS selector of an element to wait for before returning results. The scraper will poll until the element appears in the DOM. Only applies when browser is enabled.

scrape_webpage_remove Scrape Webpage Remove

Scrape a webpage with optional browser rendering, JavaScript execution, and proxy configuration. Supports cookie injection, resource blocking, and element-waiting strategies for dynamic content extraction.

ParameterTypeDescription
url *stringThe target URL to scrape. Must be a valid, complete URL.
block_resourcestringResource types to block from loading in the browser (e.g., image, stylesheet, script, font). Reduces bandwidth and speeds up scraping. Only applies when browser is enabled. Can be specified multiple t…
browserbooleanWhether to use a headless browser for scraping to handle JavaScript-rendered content. Enabled by default. Required for JS execution and resource blocking features.
cookiesstringHTTP cookies to include with the scraping request, formatted as semicolon-separated key-value pairs (e.g., name1=value1;name2=value2).
js_snippetstringBase64-encoded JavaScript code to execute after the page loads in the browser. Only applies when browser is enabled. Useful for interactions, scrolling, or data extraction.
proxy_countrystringCountry code for the proxy location (e.g., US, GB, DE). If not specified, a random country will be used.
proxy_typestringType of proxy to route the request through: datacenter (faster, shared IPs) or residential (slower, real user IPs). Defaults to datacenter.
return_page_sourcebooleanReturn the unaltered HTML as received from the server without JavaScript rendering. Only applies when browser is enabled. Disabled by default.
wait_for_selectorstringCSS selector of an element to wait for before returning results. The service will poll until the element appears in the DOM. Only applies when browser is enabled.

get_usage Get Usage

Retrieve the current API credits usage status and consumption metrics for your Scrapingant account.