Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/boring-dragon/saturn
Saturn Parser extracts the bits that humans care about from any URL you give it.
https://github.com/boring-dragon/saturn
composer extracts humans-care package php saturn url-parser webcrawler
Last synced: 10 days ago
JSON representation
Saturn Parser extracts the bits that humans care about from any URL you give it.
- Host: GitHub
- URL: https://github.com/boring-dragon/saturn
- Owner: boring-dragon
- Created: 2019-10-18T21:28:37.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2019-12-13T05:33:21.000Z (almost 5 years ago)
- Last Synced: 2024-11-29T18:53:59.916Z (13 days ago)
- Topics: composer, extracts, humans-care, package, php, saturn, url-parser, webcrawler
- Language: PHP
- Homepage:
- Size: 18.6 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-maldives - Saturn Parser - Saturn Parser is a composer package that extracts the bits that humans care about from any URL you give it. (Table of Contents / PHP Projects)
README
# :rocket: Saturn Parser
[![Latest Stable Version](https://poser.pugx.org/jinas/saturn/v/stable)](https://packagist.org/packages/jinas/saturn)
[![License](https://poser.pugx.org/jinas/saturn/license)](https://packagist.org/packages/jinas/saturn)![Image description](https://jinas.me/images/saturnparser-01.jpg)
Saturn Parser is a composer package that extracts the bits that humans care about from any URL you give it.
like article content, titles, authors, published dates, excerpts, lead images, and more.Demo Application [Saturn Demo](http://saturn.jinas.me/)
## Installation
- Command:
```bash/shell
composer require jinas/saturn
```## Usage
- Code sample:
```php
parse('https://www.cnet.com/reviews/google-nest-mini-review/');
```
```json
{
"success": true,
"data": {
"title": "Google Nest Mini review: Google's smallest smart speaker keeps getting better - CNET",
"un_title": "Google Nest Mini review:\u00a0Google's smallest smart speaker keeps getting better",
"lead_image": "https://cnet3.cbsistatic.com/img/BSH2-_S4lmkYNase8GgaOJvCkaY=/2019/10/09/c07227f1-9255-48db-8bee-1a4851ee5fcf/google-home-nest-mini-1529.jpg",
"date_published": "2019-10-17T05:00:00-0700",
"description": "Better sound, better listening and better controls pack a punch in Google's pint-size smart speaker. Oh, and it comes in blue now.",
"keywords": null,
"url": "https://www.cnet.com/reviews/google-nest-mini-review/",
"word_count": 22,
"domain": "www.cnet.com",
"site_name": "CNET"
},
"message": "Data extracted successfuly :)"
}```
### Source codes
- [Github](https://github.com/jinas123/saturn)
- [Packagist](https://packagist.org/packages/jinas/saturn)