AndrejGajdos / Link Preview Generator
Licence: mit
Get preview data (a title, description, image, domain name) from a url. Library uses puppeteer headless browser to scrape the web site.
Stars: ✭ 98
Programming Languages
javascript
184084 projects - #8 most used programming language
Projects that are alternatives of or similar to Link Preview Generator
Swiftlinkpreview
It makes a preview from an URL, grabbing all the information such as title, relevant texts and images.
Stars: ✭ 1,216 (+1140.82%)
Mutual labels: url, preview
Goscraper
Golang pkg to quickly return a preview of a webpage (title/description/images)
Stars: ✭ 72 (-26.53%)
Mutual labels: url, preview
Unchained
Headless & open-source e-commerce toolkit. The Unchained Engine is our core product and is written in Node.js ES6
Stars: ✭ 92 (-6.12%)
Mutual labels: node-js
Kodeweave
HTML/CSS/JS and Markdown Playground For Web Designers and Developers
Stars: ✭ 87 (-11.22%)
Mutual labels: preview
Djurl
Simple yet helpful library for writing Django urls by an easy, short and intuitive way.
Stars: ✭ 85 (-13.27%)
Mutual labels: url
Use Query Params
React Hook for managing state in URL query parameters with easy serialization.
Stars: ✭ 1,278 (+1204.08%)
Mutual labels: url
Node Loadbalance
A collection of distilled load balancing engines
Stars: ✭ 79 (-19.39%)
Mutual labels: node-js
Node Typescript Mongodb
node js typescript mongodb express generator yo
Stars: ✭ 96 (-2.04%)
Mutual labels: node-js
Swag Bot
My first ever discord bot using discord.js. The bot has a total of 77 commands, and it is capable of manipulating texts and images, analyzing data, searching information, and playing music. It has high level features like xp system, coins database, and spam detector.
Stars: ✭ 86 (-12.24%)
Mutual labels: node-js
Blueprint
solid framework for building APIs and backend services
Stars: ✭ 87 (-11.22%)
Mutual labels: node-js
Urlpages
Create and view web pages stored entirely in the URL
Stars: ✭ 1,263 (+1188.78%)
Mutual labels: url
Remote Code Execution Environment
Remote Code Execution system built with NodeJS and ReactJS. Have you ever wondered how code execution on competitive programming websites works? Code that runs code. Tried implementing that.
Stars: ✭ 84 (-14.29%)
Mutual labels: node-js
Laravel Url Shortener
Powerful URL shortening tools in Laravel
Stars: ✭ 80 (-18.37%)
Mutual labels: url
Tinyhttp
🦄 0-legacy, tiny & fast web framework as a replacement of Express
Stars: ✭ 1,259 (+1184.69%)
Mutual labels: node-js
Prestashop Clean Urls
Prestashop module. This override module allows to remove IDs from URLs
Stars: ✭ 87 (-11.22%)
Mutual labels: url
Botfuel Dialog
Botfuel SDK to build highly conversational chatbots
Stars: ✭ 96 (-2.04%)
Mutual labels: node-js
link-preview-generator
Get preview data (a title, description, image, domain name) from a url. Library uses puppeteer headless browser to scrape the web site.
Install
$ npm install link-preview-generator
Usage
const linkPreviewGenerator = require("link-preview-generator");
const previewData = await linkPreviewGenerator(
"https://www.youtube.com/watch?v=8mqqY2Ji7_g"
);
console.log(previewData);
/*
{
title: 'Kiteboarding: Stylish Backroll in 4 Sessions - Ride with Blake: Vlog 20',
description: 'The backroll is a staple in your kiteboarding trick ' +
'bag. With a few small adjustments, you can really ' +
'improve your style and make this basic your own. ' +
'Sessio...',
domain: 'youtube.com',
img: 'https://i.ytimg.com/vi/8mqqY2Ji7_g/hqdefault.jpg'
}
*/
API
linkPreviewGenerator(url, puppeteerArgs?, puppeteerAgent?)
Accepts a url
, which is scraped and optional parameters puppeteerArgs
-- browser options and puppeteerAgent
-- browser user agent.
Returns an object with preview data of url
.
url
Type: string
Scraped url.
puppeteerArgs
Type: array
Options to set on the Chrome browser.
puppeteerAgent
Type: string
Specific user agent to use.
Troubleshooting
If you need to deploy this library (Puppeteer) on Heroku, follow these steps.
License
MIT © Andrej Gajdos
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].