How to blur an image in Python

https://youtu.be/Fov-2pzeR90?si=ztXtpBj5Ef3E-Mz0 from PIL import Image, ImageFilter cat = Image.open('cat.jpg') blurry_cat = cat.filter(ImageFilter.GaussianBlur) blurry_cat.save('blurr_cat.jpg') blurry_cat.show()

HTTP Basic Access Authentication in Python

https://youtu.be/-EA_jpPuN5A?si=8Y6Rb8qovAO_wNmR import requests from requests.auth import AuthBase from requests.auth import HTTPBasicAuth b_auth = HTTPBasicAuth('foo','bar') req = requests.get(url='http://httpbin.org/basic-auth/foo/bar',auth=b_auth) print(req.text)

How to read PDF file from the web in Python

https://youtu.be/fz63_Vjq6rg from urllib.request import urlretrieve from pypdf import PdfReader urlretrieve('https://pdfobject.com/pdf/sample.pdf','myfile.pdf') reader = PdfReader('myfile.pdf') for page in reader.pages: print(page.extract_text())

Reading CSV Files from the web

How to retrieve the CSV file as a string from the web. https://youtu.be/sEQvz3VruSA from urllib.request import urlopen from io import StringIO import csv data = urlopen('https://people.sc.fsu.edu/~jburkardt/data/csv/addresses.csv').read().decode('ascii','ignore') dataFile = StringIO(data) dReader…

fgets in C language

https://youtu.be/nOYl8q9r2kM #include <stdio.h> int main(void) { printf("Please enter a string: "); char text[10]; if (fgets(text, 10, stdin) != NULL) { printf("You entered: %s\n", text); } else { printf("Error in reading…