Skip to main content

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 => http://python.org/ftp/python/2.7.6/python-2.7.6.msi



Step 1:



open notepad and type



import webbrowser



In python the "import" statement is used toadd 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.

Comments

Popular posts from this blog

Hacking website using SQL Injection -step by step guide

Database: Database is collection of data. In website point of view, database is used for storing user ids,passwords,web page details and more. Some List of Database are: * DB servers, * MySQL(Open source), * MSSQL, * MS-ACCESS, * Oracle, * Postgre SQL(open source), * SQLite, SQL: Structured Query Language is Known as SQL. In order to communicate with the Database ,we are using SQL query. We are querying the database so it is called as Query language. Definition from Complete reference: SQL is a tool for organizing, managing, and retrieving data stored by a computer database. The name “SQL” is an abbreviation for Structured Query Language. For historical reasons, SQL is usually pronounced “sequel,” but the alternate pronunciation “S.Q.L.” is also used. As the name implies, SQL is a computer language that you use to interact with a database. In fact, SQL works with one specific type of database, called a relational database. Simple Basic Queries for SQL: Select * from table_name : this s...

How to Make a Video Game With Cmd

Here is a free, easy, no-download way to make a video game. You will learn a little bit about batch programming in the process. You'll need to supply your own story to go with this game. Steps Anything in apostrophes can be changed, it won't affect the game - don't accidentally type it in to the actual code. Open Notepad or any other coding programs-Geany, Notepad++, etcetera. Save the file as ‘My Game’.bat Start the Code. Start by typing: @echo off title ‘My Game’ color 0A if "%1" neq "" ( goto %1) pause Add Colours. Now save it and run, it will come up with an error and all the different colour combinations. Find the one you like and type it in after “color”, instead of “zz”. A good combination is color 0A, it makes the text green and the background black. Create the Menu. To create the menu get rid of pause and type in: :Menu cls echo ‘1. Start’ echo ‘2. Instructions’ echo ‘3. Exit’ set /p answer=‘Type the number of your option and press enter.’ if %a...

How to increase speed of coping files pc to pendrive

Every know save time time is money  So this post is to save your time in coping files in your windows PC's and Laptops and use that time to read our post and become more knowledgable person so  Here we go  Basic method:- #How to increase speed of coping files pc to pendrive Open task manager Then open file explorer Then click on process Now set priority Normal to real time It increase your speed of coping 25/30mbps And as u know that u can do this easily And the ADVANCE method is to download some special softwares like teracopy etc to automaticaly get the best speed while transfering the files THANX FOR READING HELP US TO EXPAND AND IMPROVE  PLEASE COMMENT