4 Replies - 466 Views - Last Post: 19 January 2012 - 10:10 PM Rate Topic: -----

Topic Sponsor:

#1 atmost  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 4
  • Joined: 16-January 12

how to load urls to browser

Posted 16 January 2012 - 08:48 PM

hello i would like to load or add urls to my browser so they can open i wold want an import option to import via txt or whatever other format is possible.thank you
Is This A Good Question/Topic? 0
  • +

Replies To: how to load urls to browser

#2 Motoma  Icon User is offline

  • D.I.C Addict
  • member icon

Reputation: 443
  • View blog
  • Posts: 792
  • Joined: 08-June 10

Re: how to load urls to browser

Posted 16 January 2012 - 09:00 PM

What have you tried so far?

I would suggest looking into open() for reading from a text file and os.system() for opening the web browser.
Was This Post Helpful? 0
  • +
  • -

#3 atmost  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 4
  • Joined: 16-January 12

Re: how to load urls to browser

Posted 16 January 2012 - 09:36 PM

IVE TRIED THIS

import webbrowser
> > webbrowser.open('www.google.com'


BUT I GE THIS MESSAGE


True
>>> Error showing url: Error stating file '/home/gab/www.google.com': No such file or directory

I MISSED PUTTING THE PARANTHESES AND APOSTROPHE ON PYTHON BUT NO HERE SO THATS NOT THE ISSUE
Was This Post Helpful? 0
  • +
  • -

#4 Motoma  Icon User is offline

  • D.I.C Addict
  • member icon

Reputation: 443
  • View blog
  • Posts: 792
  • Joined: 08-June 10

Re: how to load urls to browser

Posted 17 January 2012 - 07:11 AM

You'll want to add the "http://" to the front.
Was This Post Helpful? 0
  • +
  • -

#5 atmost  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 4
  • Joined: 16-January 12

Re: how to load urls to browser

Posted 19 January 2012 - 10:10 PM

View PostMotoma, on 17 January 2012 - 07:11 AM, said:

You'll want to add the "http://" to the front.

hello are you a proficient python programmer? how much have you studied?
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1