Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fetch is not working ? Example seems wrong #4

Closed
vlafranca opened this issue Nov 15, 2020 · 1 comment
Closed

Fetch is not working ? Example seems wrong #4

vlafranca opened this issue Nov 15, 2020 · 1 comment

Comments

@vlafranca
Copy link

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

@vlafranca
Copy link
Author

Just seems that the result is different following the country you're from.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant