Python Snippets

old files

Remove old files using Python

One of the biggest headache computer users have is that their disk contains a lot of old and unused files. We download a lot of files from internet be it zip files or pdf files. And we are quite lazy to search old files and delete them. This python script intends to speed up this quite boring task. We will accept 3 inputs from the user.

Authenticating LinkedIn with OAuth 2.0 using CherryPy

LinkedIn is a popular social media platform for professionals. Using their API, we can fetch data from LinkedIn and use for a purpose like logging in using LinkedIn, fetching profile details etc. In this code, we will look at how we can authenticate ourselves so that we can fetch the data from LinkedIn. For this purpose, LinkedIn relies on OAuth 2.0 protocol for granting access. Documentation for this can be found out here.

Scroll to Top