https://github.com/ramgreeset/laravel.parcing
Parcing site on Laravel framework
https://github.com/ramgreeset/laravel.parcing
blade-template didom laravel php
Last synced: 3 months ago
JSON representation
Parcing site on Laravel framework
- Host: GitHub
- URL: https://github.com/ramgreeset/laravel.parcing
- Owner: ramgreeset
- Created: 2024-12-01T10:45:41.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2024-12-02T10:14:04.000Z (7 months ago)
- Last Synced: 2025-03-25T14:14:22.201Z (3 months ago)
- Topics: blade-template, didom, laravel, php
- Language: PHP
- Homepage:
- Size: 65.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Laravel.Parcing
Parcing site on Laravel framework
Stack: Laravel, DiDOMSteps:
- Creating a Laravel project
- Connecting the DiDOM library
- Connecting the Guzzle library
- Specify URL for parsing
- Create an object of the Client class to send http requests
- Send GET request to URL
- Save the received response to the $html variable
- $response->getBody() returns the body of the response - the HTML code of the page.
- The getContents() method converts the response body to a string.
- Parcing
- The Document object from DiDom is created.
- The loadHtml($html) method loads HTML content into a Document object for further processing.