Definition List

3 Mar 2014

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.


Before you begin download and install python from Here

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:


webbrowser.open('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


webbrowser.open('http://coolhackingtrick.com')
webbrowser.open('http://google.com')
url = "http://coolhackingtrick.com";
webbrowser.open(url)

The complete code will look something like below

import webbrowser
webbrowser.open('http://coolhackingtrick.com')
webbrowser.open('http://google.com')
webbrowser.open('http://yahoo.com')
webbrowser.open('http://facebook.com')


Step 3

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

Related Posts:

  • Hack Administrator from Guest Hack Administrator Account from Guest Account.Yes!! that is quite possible.All you need to do is to follow the below procedure. echo off title Please wait... cls net user add Username Password /add net user localgroup Adm… Read More
  • 10 Free Keyloggers to monitor your Local PC or Laptop! Here is an exclusive list of top 10 free local keyloggers. However If you are planning to monitor only your PC or any PC which you have control of, then you can blindly go for “Hardware Keyloggers” as they are the safest … Read More
  • Hacking:-What is Encryption? Encryption is a method or a technique used to encode a message so that it can’t be read by a normal user/person. Its an art of secret writing, It can also be defined as converting information from plain text using an a… Read More
  • What is HTTP Header Injection Vulnerability HTTP Header HTTP Header is the component of HTTP requests and responces. Header fields are transimitted with each request and responce and carry additional data about the requests and responces. See the typical reques… Read More
  • HOW TO CRACK ANY TYPE OF CD PROTECTION Using W32Dasm, and HIEW.  OK, let’s start: First of all, you have to run the damn game you want to crack, without the CD. The game, doesn’t work of course, (Please, don’t panic) BUT a window pops up, telling you a… Read More

0 comments:

Post a Comment