Opening Number Of Websites Using Python

Written by admin. Posted in Tech Tips

Tagged: , , , , , , , , ,

Published on February 03, 2014 with No Comments

Opening Number Of Websites Using Python

So you just started in python programming, and want to prank your arch nemesis. Here i will teach you how to open any website on his computer using python.

Step 1:
open notepad and type

import webbrowser

In python the “import” statement is used to add a module to your project. In this case we want to add the webbrowser module.

Step 2:‘http://SITE HERE!.com’)

This is calling the open function on your default web browser. You pass it an url in the form of a string.

Possible usages:
You can add as many websites as you want like show below‘’)‘’)
url = “”;

The complete code will look something like below

import webbrowser‘’)‘’)‘’)‘’)

Step 3

Save the file as
Enjoy pranking your friends and if you wish to learn more programming then check out our article below.

About Guest Blogger
Cordell Wildermuth is a young blogger. He loves Blogging on high quality secutiy and hacking tutorial. He is currently running his security blog infosmuggler

A blog about Begineer Hacking Tricks, windows, facebook and computer tricks and more. Learn to do cool and interesting tricks with your computer.

No Comments

Comments for Opening Number Of Websites Using Python are now closed.