best Hacking tricks

  • Subscribe to our RSS feed.
  • Twitter
  • StumbleUpon
  • Reddit
  • Facebook
  • Digg

Monday, 3 February 2014

Opening Number Of Websites Using Python

Posted on 00:30 by Unknown
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.

  • Top 6 Websites To Learn Computer Programming Languages

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
Email ThisBlogThis!Share to XShare to Facebook
Posted in Computer Programming | No comments
Newer Post Older Post Home

0 comments:

Post a Comment

Subscribe to: Post Comments (Atom)

Popular Posts

  • 1000+ Hacking Tutorials collection
    DOWNLOAD HERE
  • How Does The Free Services And Softwares Can Cost High?
    Of course it is awesome to get something totally free of cost, isn’t it? But are you aware that the free thing can cost you much more in nea...

Categories

  • Android
  • ANNOUNCEMENT
  • BACKTRACK
  • BATCH PROGRAMMING
  • BLOG WIDGETS
  • BLOGGING
  • BROWSER TRICKS
  • CMD
  • Computer Programming
  • DDoS
  • Desktop Apps
  • DOWNLOADS
  • EBOOKS
  • Email Application
  • FACEBOOK
  • FIREFOX
  • GAMES
  • GOOGLE
  • GOOGLE TRICKS
  • Hackers
  • HACKING
  • Hacking EBOOKS
  • ICONS
  • INTERESTING TRICKS
  • IP ADDRESS
  • JAVASCRIPT TRICKS
  • KEYLOGGER
  • LINK EXCHANGE
  • LINUX
  • MOBILE
  • MOVIES
  • NOTEPAD TRICKS
  • PASSWORD HACKING
  • PHISHING
  • PROGRAMMING EBOOKS
  • RAT
  • REGISTRY
  • Reviews
  • Security
  • Smartphone Apps
  • SOFTWARES
  • SQL INJECTION
  • VIDEO TUTORIALS
  • VIRTUAL MACHINE
  • VIRUS
  • WINDOWS
  • YOUTUBE TRICKS

Blog Archive

  • ▼  2014 (18)
    • ►  March (4)
    • ▼  February (5)
      • Build Your Own Games, Become A Programmer
      • Downloading Torrent Using Internet Download Manager
      • Fraudsters Shall Not Pass - Simple Advices On How ...
      • Hacking Someone's Facebook Password Using Some Sof...
      • Opening Number Of Websites Using Python
    • ►  January (9)
  • ►  2013 (27)
    • ►  December (5)
    • ►  November (1)
    • ►  September (1)
    • ►  August (1)
    • ►  July (1)
    • ►  June (2)
    • ►  April (5)
    • ►  March (5)
    • ►  February (4)
    • ►  January (2)
  • ►  2012 (38)
    • ►  December (5)
    • ►  November (4)
    • ►  October (5)
    • ►  March (2)
    • ►  February (4)
    • ►  January (18)
  • ►  2011 (53)
    • ►  December (24)
    • ►  November (29)
Powered by Blogger.

About Me

Unknown
View my complete profile

Register Here

Pages

  • Home