satoshi-takano / OpenGraph

A Swift wrapper for the Open Graph protocol (OGP).
190 stars 59 forks source link

URL from web browser site not parsing sometimes #51

Closed scy0334 closed 2 years ago

scy0334 commented 2 years ago

Hi Satoshi! Thanks for this amazing library!

I'm having error while fetching metadata from specific website. I'm trying to debug why following websites' metadata are not being fetched, but couldn't reason why.

Also, I'm using "1.3.0" version.. Somehow I counldn't "pod install" version "1.3.1".

Headers I'm passing ["User-Agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.83 Safari/537.36 facebookexternalhit/1.1"]

Error Website: https://news.naver.com/main/ranking/read.naver?mode=LSD&mid=shm&sid1=001&oid=011&aid=0003987466&rankingType=RANKING

satoshi-takano commented 2 years ago

@scy0334 Sorry for my late reply. The reason why the site which you provided couldn't be extracted its OGP was its text encoding. And #52 is going to fix this problem and now you can introduce the changes by installing 1.4.0. Thanks.

scy0334 commented 2 years ago

Thanks!