Actions132
- AI Actions
- Extract Text From Document
- Check Content Policy
- Detect Adult Content
- Detect Brand
- Detect Color
- Detect Email Type
- Detect Faces
- Extract Entities
- Extract Contact Information
- Extract Customizable Information From Text
- Fuzzy Text Matcher
- Generate Image
- Generate JavaScript Code
- Generate Python Code
- Detect Language
- Detect Mood
- Extract Text From PDF
- Recognize Objects in Image
- Extract Text From Image
- Redact Sensitive Information From PDF
- Remove Background Image
- Summarize Text
- Transcribe
- Translate Text
- Image Actions
- Business Actions
- Convert Actions
- Generate Actions
- Crypto Actions
- Operator Actions
- Storage Actions
- Scheduler Actions
- Text Actions
- Chart Actions
- Code Actions
- Calculate Actions
- Date and Time Actions
- PDF Actions
- Compress PDF File
- Count PDF Pages
- Create Empty PDF
- Decrypt PDF
- Convert DOCX to PDF
- Draw Image on PDF
- Draw Text on PDF
- Encrypt PDF
- Convert HTML to PDF
- Convert Markdown to PDF
- Manage PDF Metadata
- Merge PDF Files
- Add PDF Pages
- Remove PDF Pages
- Resize PDF Pages
- Rotate PDF Pages
- Convert PDF to Base64
- Convert PDF to Image
- Split PDF File
- Add Image Watermark to PDF
- Add Text Watermark to PDF
- Shortened URL Actions
Generate → HTML Scraping
AI-generatedOverview
The node "0CodeKit" provides a versatile toolbox of no-code utilities, including content generation, image processing, AI utilities, and more. Specifically, the Generate - HTML Scraping operation allows users to scrape HTML content from a specified URL using CSS selectors. This is useful for extracting specific elements or data from web pages without writing custom scraping scripts.
Common scenarios include:
- Extracting product details or prices from e-commerce sites.
- Gathering headlines or article snippets from news websites.
- Collecting structured data like tables or lists from public web pages.
For example, you can input a URL of a blog post and use a CSS selector like .post-title to extract all titles on that page.
Properties
| Name | Meaning |
|---|---|
| URL | The web address (URL) of the page to scrape. |
| Selector | A CSS selector string to target specific HTML elements on the page (e.g., .class, #id, h1). |
| Wait for Element | Boolean flag indicating whether the node should wait for the targeted element(s) to appear before scraping. Useful for pages with dynamic content loading. |
Output
The node outputs JSON data containing the scraped HTML content matching the provided CSS selector from the specified URL. The structure typically includes an array or list of matched elements' content or attributes depending on the implementation of the scraping action.
If binary data were involved (e.g., images), it would be summarized accordingly, but this operation focuses on textual HTML content extraction.
Dependencies
- Requires an API key credential for authentication with the external 0CodeKit service.
- The node sends a POST request to the endpoint
/generate/html-scrapeon the 0CodeKit API base URL (https://prod.0codekit.com). - No additional environment variables are needed beyond the API key credential.
Troubleshooting
- Empty or no results: Ensure the URL is correct and accessible. Verify the CSS selector matches elements on the page. If the page loads content dynamically, enable "Wait for Element".
- Authentication errors: Confirm the API key credential is valid and correctly configured in n8n.
- Timeouts or slow responses: Dynamic pages may require longer wait times; consider enabling "Wait for Element" or checking network connectivity.
- Invalid URL format: Make sure the URL starts with
http://orhttps://.
Links and References
- CSS Selectors Reference
- 0CodeKit API Documentation (general reference, actual docs may require login)
- n8n Documentation for setting up credentials and HTTP request nodes