ai_automator_extractor
This module helps you do normal extraction tasks that you would usually use regular expression and code to solve, inside your AI Automator workflow. This is a submodule from the AI module that allows you to automate almost anything.
This means that if you for instance are scraping a website and you want to extract all images from a scraped webpage into image fields, there is an Automator for it.
It also offers you to use regular expressions to scrape or even count instances of some pattern inside any type of text field.
This uses normal code to help you with your AI stuff.
Extract all images from an article into image fields using one of the Extractor Automator Types together with a scraper Automator Type.
Note that this makes the AI Interpolator Extractor obsolute for Drupal 10.3+.
For more information on how to use the AI Automator (previously AI Interpolator), check https://workflows-of-ai.com.
Features
- Extract images according to your settings from HTML.
- Extract files according to your settings from HTML.
- Extract links from unstructured text.
- Extract e-mails from unstructured text.
- Fill an integer field with how many times a regex on a text field exists.
- Extract text from unstructured text fields into text fields.
Requirements
- To use it, you need to use a third party module using the service. Currently its only usable with the AI Automator submodule of the AI module
How to use as AI Automator type (link extraction example)
- Install the AI module.
- Install this module.
- Create some entity or node type with a text long field.
- Create a link.
- Enable AI Automator checkbox and configure it.
- Create an entity of the type you generated, fill in the text field with some HTML with links and save.
- The links should be populated in the link field.
Sponsors
This module was supported by FreelyGive (https://freelygive.io/), your partner in Drupal AI.