Skip to content

Conversation

@elwafa
Copy link
Member

@elwafa elwafa commented Feb 22, 2025

  • Implemented HTMLExtractor.php to define HTML extraction rules in the Volt-Test PHP SDK.
  • Supports:
    • CSS selectors for targeting specific elements.
    • Extracting text content from nested elements.
    • Extracting attributes (e.g., value, href, src).
  • Added toArray() method for serialization, ensuring consistency with existing extractors.
  • Aligns with the existing JsonExtractor, RegexExtractor, HeaderExtractor, and CookieExtractor.

…a extraction

- Implemented `HTMLExtractor.php` to define HTML extraction rules in the Volt-Test PHP SDK.
- Supports:
  - CSS selectors for targeting specific elements.
  - Extracting text content from nested elements.
  - Extracting attributes (e.g., `value`, `href`, `src`).
- Added `toArray()` method for serialization, ensuring consistency with existing extractors.
- Aligns with the existing `JsonExtractor`, `RegexExtractor`, `HeaderExtractor`, and `CookieExtractor`.
@elwafa elwafa merged commit 51bdbad into release/v0.9.2 Feb 22, 2025
@elwafa elwafa deleted the feat/html-extractor branch February 22, 2025 11:14
elwafa added a commit that referenced this pull request Feb 22, 2025
* prepare for relase v0.9.2

* feat(extractor): Add HTMLExtractor to PHP SDK for structured HTML data extraction (#24)

* feat(extractor): Add HTMLExtractor to PHP SDK for structured HTML data extraction

- Implemented `HTMLExtractor.php` to define HTML extraction rules in the Volt-Test PHP SDK.
- Supports:
  - CSS selectors for targeting specific elements.
  - Extracting text content from nested elements.
  - Extracting attributes (e.g., `value`, `href`, `src`).
- Added `toArray()` method for serialization, ensuring consistency with existing extractors.
- Aligns with the existing `JsonExtractor`, `RegexExtractor`, `HeaderExtractor`, and `CookieExtractor`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants