[PR #3186] [MERGED] Add querySelectorAll capability to web-scraping block #4227

Closed
opened 2026-02-22 18:35:24 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Mintplex-Labs/anything-llm/pull/3186
Author: @timothycarambat
Created: 2/12/2025
Status: Merged
Merged: 2/13/2025
Merged by: @timothycarambat

Base: masterHead: web-scraping-block-with-query-selector


📝 Commits (4)

  • f2b532c Add querySelectorAll capability to web-scraping block
  • 4063ad9 patches and fallbacks
  • 863e7fe fix styles of text in web scraping block
  • 590fe08 Merge branch 'master' into web-scraping-block-with-query-selector

📊 Changes

9 files changed (+225 additions, -17 deletions)

View changed files

📝 collector/index.js (+2 -2)
📝 collector/processLink/convert/generic.js (+27 -6)
📝 collector/processLink/index.js (+8 -2)
📝 frontend/src/pages/Admin/AgentBuilder/BlockList/index.jsx (+2 -0)
📝 frontend/src/pages/Admin/AgentBuilder/nodes/WebScrapingNode/index.jsx (+42 -0)
📝 server/package.json (+1 -0)
📝 server/utils/agentFlows/executors/web-scraping.js (+44 -3)
📝 server/utils/collectorApi/index.js (+2 -2)
📝 server/yarn.lock (+97 -2)

📄 Description

Pull Request Type

  • feat
  • 🐛 fix
  • ♻️ refactor
  • 💄 style
  • 🔨 chore
  • 📝 docs

What is in this change?

Added ability to define a querySelector to the HTML response of a web scrape event via the agent flow block
Added ability to captureAs with collector for html and text - defaults remain.

Additional Information

Developer Validations

  • I ran yarn lint from the root of the repo & committed changes
  • Relevant documentation has been updated
  • I have tested my code functionality
  • Docker build succeeds locally

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Mintplex-Labs/anything-llm/pull/3186 **Author:** [@timothycarambat](https://github.com/timothycarambat) **Created:** 2/12/2025 **Status:** ✅ Merged **Merged:** 2/13/2025 **Merged by:** [@timothycarambat](https://github.com/timothycarambat) **Base:** `master` ← **Head:** `web-scraping-block-with-query-selector` --- ### 📝 Commits (4) - [`f2b532c`](https://github.com/Mintplex-Labs/anything-llm/commit/f2b532c64db3f8b8acf87eb96aa7254c63d0190f) Add `querySelectorAll` capability to web-scraping block - [`4063ad9`](https://github.com/Mintplex-Labs/anything-llm/commit/4063ad9d5d96995208d8879c3df974553ede9192) patches and fallbacks - [`863e7fe`](https://github.com/Mintplex-Labs/anything-llm/commit/863e7fef88766f1ca21b9e1ff1b18d1a5e646923) fix styles of text in web scraping block - [`590fe08`](https://github.com/Mintplex-Labs/anything-llm/commit/590fe08ab51ea0abefa806a62bf21875ad2cbb13) Merge branch 'master' into web-scraping-block-with-query-selector ### 📊 Changes **9 files changed** (+225 additions, -17 deletions) <details> <summary>View changed files</summary> 📝 `collector/index.js` (+2 -2) 📝 `collector/processLink/convert/generic.js` (+27 -6) 📝 `collector/processLink/index.js` (+8 -2) 📝 `frontend/src/pages/Admin/AgentBuilder/BlockList/index.jsx` (+2 -0) 📝 `frontend/src/pages/Admin/AgentBuilder/nodes/WebScrapingNode/index.jsx` (+42 -0) 📝 `server/package.json` (+1 -0) 📝 `server/utils/agentFlows/executors/web-scraping.js` (+44 -3) 📝 `server/utils/collectorApi/index.js` (+2 -2) 📝 `server/yarn.lock` (+97 -2) </details> ### 📄 Description ### Pull Request Type <!-- For change type, change [ ] to [x]. --> - [x] ✨ feat - [ ] 🐛 fix - [x] ♻️ refactor - [ ] 💄 style - [ ] 🔨 chore - [ ] 📝 docs ### What is in this change? Added ability to define a `querySelector` to the HTML response of a web scrape event via the agent flow block Added ability to `captureAs` with collector for `html` and `text` - defaults remain. <!-- Describe the changes in this PR that are impactful to the repo. --> ### Additional Information <!-- Add any other context about the Pull Request here that was not captured above. --> ### Developer Validations <!-- All of the applicable items should be checked. --> - [x] I ran `yarn lint` from the root of the repo & committed changes - [x] Relevant documentation has been updated - [x] I have tested my code functionality - [x] Docker build succeeds locally --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-02-22 18:35:24 -05:00
yindo closed this issue 2026-02-22 18:35:24 -05:00
yindo changed title from [PR #3186] Add `querySelectorAll` capability to web-scraping block to [PR #3186] [MERGED] Add `querySelectorAll` capability to web-scraping block 2026-06-05 15:17:30 -04:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Mintplex-Labs/anything-llm#4227