LeonardoCardoso / SwiftLinkPreview

It makes a preview from an URL, grabbing all the information such as title, relevant texts and images.
https://leocardz.com/swift-link-preview-5a9860c7756f
MIT License
1.37k stars 198 forks source link

Can't get image, description or title from link #83

Closed onurgenes closed 6 years ago

onurgenes commented 6 years ago

Trying to get preview from "www.dji.com/matrice600-pro/info#specs" but it returns 404.

Any idea?

LeonardoCardoso commented 6 years ago

What are the urls you are getting as response?

"url": 
"finalUrl": 
"canonicalUrl":
onurgenes commented 6 years ago

"url": www.dji.com/matrice600-pro/info#specs "finalUrl": https://www.dji.com/404?url=http%3A%2F%2Fwww.dji.com%2Fmatrice600-pro%2Finfo#specs "canonicalUrl": http://www.dji.com/matrice600-pro/info#specs

These are returning urls.

LeonardoCardoso commented 6 years ago

Apparently it is redirecting the url unnecessarily. I will have a look when I have enough time.

onurgenes commented 6 years ago

Waiting eagerly for fix. Thanks.

LeonardoCardoso commented 6 years ago

New method added. Check it out on master (Soon on a new release).

screen shot 2018-06-07 at 15 41 47
onurgenes commented 6 years ago

Will check it out soon.