-
-
Notifications
You must be signed in to change notification settings - Fork 22.6k
Add Oxylabs Document Loader #4625
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Oxylabs Document Loader #4625
Conversation
can you do |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
Adds a new Oxylabs document loader that integrates with the Oxylabs real-time scraping API and exposes it as a Flowise node.
- Introduces
OxylabsLoader
for making authenticated requests to various Oxylabs sources. - Wraps the loader in an
INode
implementation (Oxylabs_DocumentLoaders
) with UI inputs and output handling. - Adds a credential definition for Oxylabs API credentials.
Reviewed Changes
Copilot reviewed 2 out of 3 changed files in this pull request and generated 3 comments.
File | Description |
---|---|
packages/components/nodes/documentloaders/Oxylabs/Oxylabs.ts | New loader class, API request methods, and Flowise node wrapper |
packages/components/credentials/OxylabsApi.credential.ts | New credential class for Oxylabs API username/password |
Comments suppressed due to low confidence (3)
packages/components/nodes/documentloaders/Oxylabs/Oxylabs.ts:69
- [nitpick] The
OxylabsLoader
class lacks JSDoc or inline comments. Adding a brief description and parameter/docs would improve readability and help future maintainers.
export class OxylabsLoader extends BaseDocumentLoader {
packages/components/nodes/documentloaders/Oxylabs/Oxylabs.ts:165
- [nitpick] Class name
Oxylabs_DocumentLoaders
uses an underscore and plural form. Consider renaming toOxylabsDocumentLoaderNode
for consistency with the project's naming conventions.
class Oxylabs_DocumentLoaders implements INode {
packages/components/nodes/documentloaders/Oxylabs/Oxylabs.ts:1
- No unit tests were added for
OxylabsLoader
. Consider adding tests to cover each source type, parameter filtering, and error handling paths.
import { TextSplitter } from 'langchain/text_splitter'
e006012
to
06c47e6
Compare
06c47e6
to
b9e1a92
Compare
Hi @HenryHengZJ, I've updated the PR. Could you please check if you have any other remarks? |
@oxy-rostyslav Great work! Thank you for your contribution! @HenryHengZJ I've tested and reviewed this one. Works well. Good to merge. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thank you!
Description
Adds an Oxylabs Document loader that allows to load the data from multiple sources efficiently.
Example