Extract Website Content
To get a deep dive into all available environment variables refer to
server.config.ts
.
Lecca.io provides a way to easily allow users to extract content from websites in their workflows or allow their agents to do.
These actions uses apify to search the web. A few things need to be done for this feature to be enabled.
APIFY_API_KEY
- Go to Apify
- Create an account
- Generate an Api Key
APIFY_EXTRACT_DYNAMIC_CONTENT_TASK_ID
This key is used for extracting dynamic content from websites (javascript enabled).
- Create a task from the apify/website-content-crawler actor.
- Modify the crawler settings to whatever limit of pages you want (I set mine to 1).
- Use the task ID for the environment variable, APIFY_EXTRACT_DYNAMIC_CONTENT_TASK_ID
APIFY_EXTRACT_STATIC_CONTENT_TASK_ID
This key is used for extracting content from static websites.
- Create a task from the apify/cherio-scraper actor.
- Modify the crawler settings to whatever limit of pages you want (I set mine to 1).
- Use the task ID for the environment variable, APIFY_EXTRACT_STATIC_CONTENT_TASK_ID
Add all Api Keys to environment varibles
Once they are added as environment variables, the ServerConfig
will pull them in automatically.