Amazing-Python-Scripts

Форк
0

README.md

Link Preview

A script to provide the user with a preview of the link entered.

  • When entered a link, the script will provide with title, description, and link of the website that the URL points to.
  • The script will do so by fetching the Html file for the link and analyzing the data from there.
  • The data will be saved in a JSON file named db.json for further reference
  • Every entry will have a time limit after which it will be updated (Data expires after 7 days)

Setup instructions

Download the required packages from the following command in you terminal.(Make sure you're in the same project directory)

pip3 install -r requirements.txt

Running the script:

After installing all the requirements,run this command in your terminal.

python3 linkPreview.py

Output

The script will provide you with Title, Description, Image Link and URL.

demo gif

Author(s)

Hi, I'm Madhav Jha author of this script 🙋‍♂️

Использование cookies

Мы используем файлы cookie в соответствии с Политикой конфиденциальности и Политикой использования cookies.

Нажимая кнопку «Принимаю», Вы даете АО «СберТех» согласие на обработку Ваших персональных данных в целях совершенствования нашего веб-сайта и Сервиса GitVerse, а также повышения удобства их использования.

Запретить использование cookies Вы можете самостоятельно в настройках Вашего браузера.