Posts

Showing posts with the label Python

Notorious Kid Doing Online Shopping 👶(Automating Login Form Submission Using Python)

Few months ago I found an online shopping website for buying stationary and college stuff. The Interface of the website was Ok but there was some serious security flaws in the website. So to kill this lock down daemon I decided to play with that website. The major flaw was that it was to much easy to create a new user account on that website , you just simply have to enter your email and password , Hurray your account is created. Seriously no otp , no captcha nothing just enter a random email babubhaiay@ly.com or anything else your account will be created. It's hard to find such websites these days but still there are many if you explore the internet. This flaw on XYZ shopping website activated the beast inside me , so I just decided to do something diabolical. I wrote a python script through which you can create hundreds of fake account sorry thousands , sorry millions ok wait as much as you can or want. Just four lines of python code and bhoom companies database will be flooded w...

Working With Gmail API

Image
Hi friends today in this blog we will talk about the  Gmail REST API. On 25,June 2014 gmail launched it's API.This API is widely used among developers.  We will implement this  API using python though documentation for gmail API in python is available but it is not updated.  Let's begin , for using gmail API You need to enable gmail API for your account and create credentials for the API. 1. For Enabling gmail API visit  Google Developer Console   and click on Enable APIS And Services. 2. Search for gmail API and then click on enable button.                   3.  Go to credentials option and then click on create credentials. 3 options will be displayed to you , select oauth client id. 4. Give name to your oauth app , if you are creating a django app using gmail API with python then you should add the link of your website also. 5. Install Python library for Gmail API by using following command.  pip inst...

How To Automate Or Schedule Jobs Using Python

In this World of Automation everyone wants to save their time and money. Suppose you are System Administrator at a company and you have to run a script after each hour manually then doing this task is very boring. Rather then you would like to Automate this task. Welcome Guys you are at techsyapa and today we will talk about how you can schedule your Jobs Using Python. In this tutorial we will make a simple water drinking reminder which will remind the user to drink the water after every 1.5 hour.  In this tutorial we will use pythons apscheduler for scheduling our job , If you are looking for something light then the apscheduler might be the solution for you.  In this Script our Job is to Remind the User for Drinking the water and we have to schedule this Job after every 1.5 hour , so lets make our hands dirty and write some piece of code. In the Above code we have used 3 python libraries :- 1. Notify2 :-  For Sending the Notification to the user. 2. Time :-  For Ru...