Menu
Forums
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Trending
What's new
New posts
New profile posts
Latest activity
Members
Current visitors
New profile posts
Search profile posts
Upgrades
Log in
Register
What's new
Search
Search
Search titles only
By:
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
Software Development
Programming
[PY] Web Browser?
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Sway" data-source="post: 223934" data-attributes="member: 1889"><p>I have no idea what to name this but you pretty much enter the website you want to go to (through the command line) and it will open your default browser and take you to that website.</p><p> </p><p><strong>Source:</strong></p><p><a href="http://pastebin.com/j5wF6Mqb" target="_blank">http://pastebin.com/j5wF6Mqb</a></p><p> </p><p><strong>Source 2:</strong></p><p><a href="http://pastebin.com/DtbVDpKN" target="_blank">http://pastebin.com/DtbVDpKN</a></p><p> </p><p><strong>Source 3:</strong></p><p><a href="http://pastebin.com/849LBLJD" target="_blank"><span style="color: #6d3f03">http://pastebin.com/849LBLJD</span></a></p><p> </p><p><strong>Source 4 and final:</strong></p><p><a href="http://pastebin.com/Wex9KcA1" target="_blank">http://pastebin.com/Wex9KcA1</a></p><p> </p><p><strong>Snippet:</strong></p><p>[CODE]def main():</p><p> print()</p><p> print("Do not add 'http://'")</p><p> website = input("Website: ")</p><p> </p><p> print("Opening website...")</p><p> time.sleep(2)</p><p> webbrowser.open_new("http://%s" % website)</p><p> </p><p> startOver()[/CODE]</p><p> </p><p>It was created in <strong>Python </strong>in roughly 15 minutes. Was experimenting with the webbrowser module. I will add other options like opening the website in a new tab or choosing a browser of your choice.</p><p> </p><p><strong>FAQ:</strong></p><p><strong>Q) </strong>Couldn't I just open my browser and go to the website, instead of spending more time using this?</p><p> </p><p><strong>A) </strong>This is mainly for educational purposes. I have no idea why you would use this over a real browser yet.. however I'm sure there is a good use. Still learning about the webbrowser module.</p></blockquote><p></p>
[QUOTE="Sway, post: 223934, member: 1889"] I have no idea what to name this but you pretty much enter the website you want to go to (through the command line) and it will open your default browser and take you to that website. [B]Source:[/B] [URL]http://pastebin.com/j5wF6Mqb[/URL] [B]Source 2:[/B] [URL]http://pastebin.com/DtbVDpKN[/URL] [B]Source 3:[/B] [URL='http://pastebin.com/849LBLJD'][COLOR=#6d3f03]http://pastebin.com/849LBLJD[/COLOR][/URL] [B]Source 4 and final:[/B] [URL]http://pastebin.com/Wex9KcA1[/URL] [B]Snippet:[/B] [CODE]def main(): print() print("Do not add 'http://'") website = input("Website: ") print("Opening website...") time.sleep(2) webbrowser.open_new("http://%s" % website) startOver()[/CODE] It was created in [B]Python [/B]in roughly 15 minutes. Was experimenting with the webbrowser module. I will add other options like opening the website in a new tab or choosing a browser of your choice. [B]FAQ:[/B] [B]Q) [/B]Couldn't I just open my browser and go to the website, instead of spending more time using this? [B]A) [/B]This is mainly for educational purposes. I have no idea why you would use this over a real browser yet.. however I'm sure there is a good use. Still learning about the webbrowser module. [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Software Development
Programming
[PY] Web Browser?
Top