Actions15
Page → Get Code Blocks
AI-generatedOverview
This node operation extracts all code blocks from a specified page within a Cosense (formerly Scrapbox) project. It is useful for scenarios where you need to programmatically retrieve and analyze code snippets embedded in project pages, such as for documentation, code review, or automated processing of code examples.
Use Case Examples
- Extracting all code blocks from a project page to generate a summary report of code snippets.
- Retrieving code blocks for automated testing or validation of code examples within project documentation.
Properties
| Name | Meaning |
|---|---|
| Project Name | The name of your Cosense/Scrapbox project from which to retrieve the page. |
| Page Title | The title of the page to get code blocks from within the specified project. |
Output
JSON
json- The extracted code blocks from the specified page, returned as an array or object depending on the API response structure.
Dependencies
- Requires an API key credential for Cosense API authentication to access project and page data.
Troubleshooting
- Common issues include invalid project name or page title resulting in not found errors. Verify the project and page names are correct.
- API authentication errors if the Cosense API credential is missing or invalid. Ensure the API key is properly configured.
- Rate limiting or network errors from the Cosense API may cause failures. Retry or check network connectivity if errors occur.
Links
- Cosense API Documentation - Official API documentation for Cosense, detailing endpoints and usage for page and project operations.