How To Use PyPDF To Make A (YouTube) image and text PDF | Python
Dr Pi
This video features:
● Installing PyPDF (aka FPDF) : 'pip3 install fpdf2' ● Making a Dict from a JSON file ● Looping through Nested Dictionaries ● Object Oriented Programming 15:33 ● TQDM progress bars 22:19 ● A look at GitHub 25:50
From my code you will see how to write the code to produce a multipage PDF with a logo at the top, with its own hyperlink.
I place images and text using x and y coordinates on an 'A4' page.
This uses cells, jpg, links, UTF-8, automatic page breaks, custom fonts.
The 2 files needed for this are on GitHub:
▶ ytapithumbget.py gets the thumbnail images, and text descriptions for each video.
▶ pdf_demo.py creates the pdf with the very same images and text.
You will need to register for an API key : https://console.cloud.google.com/
The API key is a unique identifier that is used to authenticate requests associated with your project.
Why would you want to make a PDF of every YouTube video and description? Many reasons, a back up of your own content that is searchable?
A copy of a channel you follow that has so many videos, and you want to search for a particular one, and the words you remember are in the description and not the title?
You want an offline copy of your channel to print out?
The possibilities are almost....endless.
Check out the Minimalist online python IDE : https://epyco.herokuapp.com/ https://epico.herokuapp.com/
https://www.buymeacoffee.com/DrPi ☕️☕️☕️ ... https://www.youtube.com/watch?v=iWevlRnFJGs
246135488 Bytes