Facebook Hacking.... Click Here


Monday, 3 February 2014

Opening Number Of Websites Using Python


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 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

Subscribe To Get FREE Tutorials!


Kindly Bookmark and Share it:


4 comments:

Nikhil Dave on 15 February 2014 07:53 said...

how to open the file ...?

Cordell Wildermuth on 17 February 2014 08:53 said...

Hey this is Cordell. My friend Nakib forgot to tell you to download python:

http://python.org/ftp/python/2.7.6/python-2.7.6.msi

Nakib Momin on 17 February 2014 11:09 said...

@nikhil what file?

@cordell thanks for pointing it out, i have updated the post.

Karan Trara on 2 June 2014 02:36 said...

PAID ANDROID APPS FOR FREE!!
PAID ANDROID APPS FOR FREE!!
PAID ANDROID APPS FOR FREE!!
PAID ANDROID APPS FOR FREE!!
PAID ANDROID APPS FOR FREE!!
PAID ANDROID APPS FOR FREE!!
PAID ANDROID APPS FOR FREE!!
PAID ANDROID APPS FOR FREE!!
PAID ANDROID APPS FOR FREE!!
PAID ANDROID APPS FOR FREE!!
PAID ANDROID APPS FOR FREE!!
PAID ANDROID APPS FOR FREE!!
PAID ANDROID APPS FOR FREE!!
PAID ANDROID APPS FOR FREE!!
PAID ANDROID APPS FOR FREE!!
PAID ANDROID APPS FOR FREE!!
PAID ANDROID APPS FOR FREE!!
PAID ANDROID APPS FOR FREE!!
PAID ANDROID APPS FOR FREE!!
PAID ANDROID APPS FOR FREE!!
PAID ANDROID APPS FOR FREE!!
PAID ANDROID APPS FOR FREE!!
PAID ANDROID APPS FOR FREE!!
PAID ANDROID APPS FOR FREE!!
PAID ANDROID APPS FOR FREE!!
PAID ANDROID APPS FOR FREE!!
PAID ANDROID APPS FOR FREE!!
PAID ANDROID APPS FOR FREE!!
PAID ANDROID APPS FOR FREE!!
PAID ANDROID APPS FOR FREE!!
PAID ANDROID APPS FOR FREE!!
PAID ANDROID APPS FOR FREE!!
PAID ANDROID APPS FOR FREE!!
PAID ANDROID APPS FOR FREE!!
PAID ANDROID APPS FOR FREE!!
PAID ANDROID APPS FOR FREE!!
PAID ANDROID APPS FOR FREE!!
PAID ANDROID APPS FOR FREE!!
PAID ANDROID APPS FOR FREE!!
PAID ANDROID APPS FOR FREE!!
PAID ANDROID APPS FOR FREE!!
PAID ANDROID APPS FOR FREE!!
PAID ANDROID APPS FOR FREE!!
PAID ANDROID APPS FOR FREE!!
PAID ANDROID APPS FOR FREE!!
PAID ANDROID APPS FOR FREE!!
PAID ANDROID APPS FOR FREE!!
PAID ANDROID APPS FOR FREE!!

Click Here To add Comment

Post a Comment

Newer Posts Newer Posts