Amazing-Python-Scripts

Форк
0

README.md

Save any article you like from GeeksForGeeks as a pdf

This python script will download articles from GeeksForGeeks and save them as a pdf file. The script uses Selenium Webdriver and fpdf library. Selenium is used with Chrome Webdriver, so having Chrome browser is a requirement.

Setting up:

  • Create a virtual environment and activate it.

  • Install the requirements

$ pip install -r requirements.txt

Running the script:

$ python geeksforgeeks_article_downloader.py [url] #without the brackets

Example running the script :

$ python geeksforgeeks_article_downloader.py https://www.geeksforgeeks.org/shortest-path-faster-algorithm/?ref=leftbar-rightbar

The program will ask you to enter a filename(without '.pdf'). The pdf will be created in the same folder.

article screenshot

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

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

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

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