spekulatius / PHPScraper

A universal web-util for PHP.
https://phpscraper.de
GNU General Public License v3.0
509 stars 73 forks source link

What location PHPSCrapper based on? #175

Closed datlechin closed 1 year ago

datlechin commented 1 year ago

Hi @spekulatius,

Some user using my https://github.com/datlechin/flarum-link-preview that used PHPScrapper, They see the scrap content is in other language, is the website content based on where the website is hosted?

image

https://discuss.flarum.org/d/30011-link-preview/178

spekulatius commented 1 year ago

Hello @datlechin

I haven't explicitly set any locale. Can you check with a site like this what headers are sent?

Cheers, Peter