Jump to content

LIbrary for loading content from external URL, like headlines and pictures

ThreePinkApples
Go to solution Solved by madknight3,

Facebook and Slack uses link previews. I'm not sure if that's exactly what you want for yourself but it's worth a look. Maybe just seeing how they get the data will be all you need.

You'll get a lot of results from Google with searches like "php link preview".

So I'm nearing the end of my bachelor projects, and there is one thing that I want to fit in. I would like that when users paste in an URL, it will (try to) load content from it like headlines and pictures. Much in the same way that Facebook do so well when sharing a link, or like Slack does it where it fetches some text too.

 

I seem to not be able to Google for the right thing, I just find tips on how to load an URL and then have to read it myself. I can't believe that there isn't at least some libraries out there that does this quite good.

 

Any ideas, tips?

Also tips about building one my self is welcome, I have some time left

 

Edit:

Using Laravel 5 (PHP). So JavaScript, jQuery or PHP is fine

Ryzen 7 5800X     Corsair H115i Platinum     ASUS ROG Crosshair VIII Hero (Wi-Fi)     G.Skill Trident Z 3600CL16 (@3800MHzCL16 and other tweaked timings)     

MSI RTX 3080 Gaming X Trio    Corsair HX850     WD Black SN850 1TB     Samsung 970 EVO Plus 1TB     Samsung 840 EVO 500GB     Acer XB271HU 27" 1440p 165hz G-Sync     ASUS ProArt PA278QV     LG C8 55"     Phanteks Enthoo Evolv X Glass     Logitech G915      Logitech MX Vertical      Steelseries Arctis 7 Wireless 2019      Windows 10 Pro x64

Link to comment
Share on other sites

Link to post
Share on other sites

Facebook and Slack uses link previews. I'm not sure if that's exactly what you want for yourself but it's worth a look. Maybe just seeing how they get the data will be all you need.

You'll get a lot of results from Google with searches like "php link preview".

Link to comment
Share on other sites

Link to post
Share on other sites

Thanks! With some styling that will work perfectly!

Ryzen 7 5800X     Corsair H115i Platinum     ASUS ROG Crosshair VIII Hero (Wi-Fi)     G.Skill Trident Z 3600CL16 (@3800MHzCL16 and other tweaked timings)     

MSI RTX 3080 Gaming X Trio    Corsair HX850     WD Black SN850 1TB     Samsung 970 EVO Plus 1TB     Samsung 840 EVO 500GB     Acer XB271HU 27" 1440p 165hz G-Sync     ASUS ProArt PA278QV     LG C8 55"     Phanteks Enthoo Evolv X Glass     Logitech G915      Logitech MX Vertical      Steelseries Arctis 7 Wireless 2019      Windows 10 Pro x64

Link to comment
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×