Drupal is a registered trademark of Dries Buytaert
Release: Drupal 10.3.6 Update released for Drupal core (10.3.6)! Release: Drupal 11.0.5 Update released for Drupal core (11.0.5)! Release: Drupal 10.2.9 Update released for Drupal core (10.2.9)! Release: Drupal 10.2.10 Update released for Drupal core (10.2.10)! Release: Drupal 10.3.7 Update released for Drupal core (10.3.7)! Release: Drupal 11.0.6 Update released for Drupal core (11.0.6)! Release: Drupal 10.3.8 Update released for Drupal core (10.3.8)! Release: Drupal 11.0.7 Update released for Drupal core (11.0.7)! Module Revived: Translation Management Tool 8.x-1.19 Module tmgmt updated after 7 months of inactivity (8.x-1.19). Usage Milestone: Account field split Module account_field_split crossed 10,000 active installs.

What is this

ScrapingBot is a service that can take a link and scrape it using an actual browser from almost anywhere in the world. It also offers depth scraping/crawling of an entire website using the AI Automator in the AI module.

ScrapingBot is a module that currently have two things available for it. The one thing is a service where you can get scrape a url with the ScrapingBot service for any third party module that would want to use it for contextualize AI calls or scrape website in general using a real browser, without having to setup any services on your server.

The other core feature is that it has one AI Automator type for the AI Automator module that can be found in the AI module. It makes it possible to take any link field and fill out any text field or even image fields. It also offers depth scraping, meaning that you can fill out multiple text fields into a fully crawled/scraped website. This can work in an Automator workflow/blueprint to make powerful end products.

For more information on how to use the AI Automator (previously AI Interpolator), check https://workflows-of-ai.com.

Note that this is the follow up module of the AI Interpolator ScrapingBot and makes that module obsolete for Drupal 10.3+.

Features

  • Scrape any url into text.
  • Crawl whole webpages from a initial url.
  • Scrape a specific selector/DOM object.
  • Scrape only the actual text content.
  • Scrape client side rendered webpages using a real browser.
  • Scrape from almost 100 different countries.
  • Scrape at an extra cost using premium proxies, meaning IP ranges that are not server based.

Requirements

  • Requires an account at ScrapingBot. There is a free trial and if you use the code DRUPALAI you will get 10% off your first month.
  • Requires the Key module for storing the API key.
  • 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

  • Install the AI module.
  • Install this module.
  • Visit /admin/config/scrapingbot/settings and add your username and api key from your ScrapingBot account.
  • Create some entity or node type with a link field. Set it to external links.
  • Create a Text Long, either formatted or unformatted.
  • Enable AI Automator checkbox and configure it.
  • Create an entity of the type you generated, add a link.
  • The text will be filled out from the scraped content using your settings.

    How to use the ScrapingBot service.

    This is a code example on how you can get text for a url.

  • For the full configuration array, check: https://www.scraping-bot.io/web-scraping-documentation/advanced-options

    $scrapingbot = \Drupal::service('scrapingbot.api');
    // Config.
    $config = [
      'proxyCountry' = 'DE',
    ];
    // Get html response.
    $html = $scrapingbot->scrapeRaw('https://www.reddit.com/r/drupal', $config);
    

    Depends on

    Dependencies of the latest stable release

    No dependencies recorded for this project.

    Required by

    Tracked projects that depend on this one

    No tracked projects depend on this one yet.

    Activity

    Tracked releases
    2
    Tracked since
    Jan 2025
    Latest release
    1 year ago
    Releases (12 mo)
    0 ▼ from 2
    Maintenance
    Dormant

    Releases

    Version Type Core Release date
    1.0.0-beta1 Pre-release Jan 2, 2025
    1.0.x-dev Dev Jan 2, 2025