Durchsuchen nach
Tag: Python

How to connect with a database via Python Pandas

How to connect with a database via Python Pandas

The requirement Then go to your commandline and type in The code Wahlen = elections. It is a database about the elections results in my home town here in Essen until 2005. The video to the script Here is my video (13:57 minutes) on my YouTube channel about it, You can subscribe it, if you want

Python 3.13 How to check how many pages a PDF file has

Python 3.13 How to check how many pages a PDF file has

In order to do this, you need the Python module PyPDF2. You install it with pip3 install PyPDF2 Then it is important for this code here, you have the version PyPDF2 Version 3.0.1 If not then you have to update the module because the programmer of the tool has changed a command within the module In the foreign version the command PdfFileReader was the correct command but now in version 3.0.1 the command PdfReader is the correct one, otherwise this…

Weiterlesen Weiterlesen

Python 3.13 read information in photos

Python 3.13 read information in photos

In photos there information saved, that it is called exif. Of course you can click on every photo and read this information. A little bit easier it would be with a script in Python. You have to install the module: pillow. pip3 install pillow or to check it whether you already installed it pip3 list | grep pillow Here is the script: The output looks like this: ResolutionUnit:2ExifOffset:214Make:AppleModel:iPhone XRSoftware:15.5Orientation:1DateTime:2022:06:30 06:59:46YCbCrPositioning:1XResolution:72.0YResolution:72.0HostComputer:iPhone XR