Coder Social home page Coder Social logo

layeredstudio / page-meta Goto Github PK

View Code? Open in Web Editor NEW
10.0 10.0 2.0 73 KB

๐Ÿ•ต๐Ÿผ Get detailed info for any URL on the internet. Scraper for HTML meta tags, OpenGraph, Schema data

Home Page: https://api.layered.studio/page-meta

License: MIT License

PHP 100.00%
embed link-preview oembed opengraph schema scraper url-preview

page-meta's People

Contributors

andreiigna avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

lpetrov vlafranca

page-meta's Issues

Fetch is not working ? Example seems wrong

Hi,
I don't get the same results as your examples in the read me can you tell me why ?
I am scrapping the instagram url as in the example (https://www.instagram.com/p/BbRyo_Kjqt1/) but the result i am getting are :

array(4) {
  ["site"]=>
  array(9) {
    ["url"]=>
    string(25) "https://www.instagram.com"
    ["name"]=>
    string(9) "Instagram"
    ["secure"]=>
    bool(true)
    ["responsive"]=>
    bool(true)
    ["author"]=>
    string(0) ""
    ["generator"]=>
    string(0) ""
    ["icon"]=>
    string(76) "https://www.instagram.com/static/images/ico/favicon-192.png/68d99ba29cc8.png"
    ["language"]=>
    string(2) "en"
    ["theme-color"]=>
    string(7) "#ffffff"
  }
  ["page"]=>
  array(4) {
    ["type"]=>
    string(7) "website"
    ["url"]=>
    string(62) "https://www.instagram.com/accounts/login/?next=/p/BbRyo_Kjqt1/"
    ["title"]=>
    string(19) "Login โ€ข Instagram"
    ["description"]=>
    string(133) "Welcome back to Instagram. Sign in to check out what your friends, family & interests have been capturing & sharing around the world."
  }
  ["author"]=>
  array(0) {
  }
  ["app_links"]=>
  array(0) {
  }
}

When i open the sources of this url I can see that the opengraph attributes are not parsed and it seems only basic html description is parsed.
I am running on php 7.3, Laravel 7

any help very appreciated.

thanks

Facebook URLs are returning Login Pages

In my localhost, the package runs smoothly, but when I use it on a server, it fails to parse facebook URLs and just returns Login Page instead. Do you think of any issues?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.