Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ramgreeset/laravel.parcing
Parcing site on Laravel framework
https://github.com/ramgreeset/laravel.parcing
blade-template didom laravel php
Last synced: 19 days 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 (21 days ago)
- Default Branch: main
- Last Pushed: 2024-12-01T20:01:54.000Z (21 days ago)
- Last Synced: 2024-12-01T20:30:37.163Z (21 days ago)
- Topics: blade-template, didom, laravel, php
- Homepage:
- Size: 1.95 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.