Skip to content

Saturn Parser extracts the bits that humans care about from any URL you give it.

Notifications You must be signed in to change notification settings

boring-dragon/saturn

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🚀 Saturn Parser

Latest Stable Version License

Image description

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

Installation

  • Command:
composer require jinas/saturn

Usage

  • Code sample:
<?php

namespace Jinas\Saturn;

require '../vendor/autoload.php';

$rp = new Saturn;

echo $rp->parse('https://www.cnet.com/reviews/google-nest-mini-review/');
{
    "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

About

Saturn Parser extracts the bits that humans care about from any URL you give it.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages