×

Discussion Board

Results 1 to 9 of 9
  1. #1
    Registered User
    Join Date
    Mar 2008
    Posts
    25

    Python Search On Web

    Hi,

    Is there a way to, say, do a google or yahoo search from within your python app? Could someone point me in the right direction for something like this?

    Thanks!!

  2. #2
    Regular Contributor
    Join Date
    Dec 2007
    Location
    India
    Posts
    133

    Re: Python Search On Web

    Yes, this is possible. You can retrive the contains of a webpage. So you need to have the google search results site name to access the available search results.
    For eg, http://www.google.com/search?client=...utf-8&oe=utf-8
    Kandyfloss

    V 7.0642.0
    18-10-06
    RH-51
    Nokia 7610

  3. #3
    Registered User
    Join Date
    Mar 2008
    Posts
    25

    Re: Python Search On Web

    Hi Kandyfloss!

    Thanks for your help.

    I have already done thid but that returns so many links.. up to 70.
    how would i just get the top 10 returned links? a lot of them are advertisements and stuff.

  4. #4
    Nokia Developer Moderator
    Join Date
    May 2007
    Location
    21.46 N 72.11 E
    Posts
    3,795

    Re: Python Search On Web

    Hi ComplexT,

    If you not find a specific solution to that, there is always string manipulation that can work for you. Using string manipulation (slice operator I recommend) you could filter the results and get the desired results.

    Best Regards
    Croozeus
    Pankaj Nathani
    www.croozeus.com

  5. #5
    Registered User
    Join Date
    Mar 2008
    Posts
    25

    Re: Python Search On Web

    Thanks Croozeus..

    i may come back for some more help from you on that topic!!

  6. #6
    Nokia Developer Champion
    Join Date
    Feb 2008
    Location
    Ahmedabad, Gujarat, India
    Posts
    3,852

    Re: Python Search On Web

    Quote Originally Posted by ComplexT View Post
    Hi,

    Is there a way to, say, do a google or yahoo search from within your python app? Could someone point me in the right direction for something like this?

    Thanks!!
    hi ComplexT
    one more idea what i can suggest you that from the python script u can definately open a browser or a bookmark why dont u try those things.
    plz give the feedback

  7. #7
    Registered User
    Join Date
    Mar 2008
    Posts
    25

    Re: Python Search On Web

    Hey,

    thanks all again for your help.

    Yes that is what i wouldnt mind doing. I tried to use webbrowser module. when i took it from my python dist and added the file to my libraries i was getting the error no module named collections??

    i couldnt find information on this anywhere..
    the line says "from collections import deque" ??

    Should opening the webbrowser be straight forward?? thanks for your help again

  8. #8
    Super Contributor
    Join Date
    Oct 2007
    Location
    Deva, Romania
    Posts
    3,471

    Re: Python Search On Web

    Quote Originally Posted by ComplexT View Post
    Hey,

    thanks all again for your help.

    Yes that is what i wouldnt mind doing. I tried to use webbrowser module. when i took it from my python dist and added the file to my libraries i was getting the error no module named collections??

    i couldnt find information on this anywhere..
    the line says "from collections import deque" ??

    Should opening the webbrowser be straight forward?? thanks for your help again
    I'm not sure if this helps but, have you seen this article? It's about how to open a web browser. Again, sorry if it's not much help

  9. #9
    Nokia Developer Champion
    Join Date
    Feb 2008
    Location
    Ahmedabad, Gujarat, India
    Posts
    3,852

    Re: Python Search On Web

    Quote Originally Posted by ComplexT View Post
    Hey,

    thanks all again for your help.

    Yes that is what i wouldnt mind doing. I tried to use webbrowser module. when i took it from my python dist and added the file to my libraries i was getting the error no module named collections??

    i couldnt find information on this anywhere..
    the line says "from collections import deque" ??

    Should opening the webbrowser be straight forward?? thanks for your help again
    hi ComplexT
    its very easy to open a browser in phone using pys60 script. i have given just a sample use it
    Code:
    import e32
    import location
    from audio import*
    
    apprun = 'z:\\system\\programs\\apprun.exe'
    browser = 'z:\\System\\Apps\\Browser\\Browser.app'
    hope it helps and give a feedback

Similar Threads

  1. Please help installing Python libraries on S60
    By ericroijen in forum Symbian
    Replies: 11
    Last Post: 2009-07-18, 10:43
  2. Replies: 12
    Last Post: 2008-11-04, 12:55
  3. Is there web services support for python on S60
    By skarthiks in forum Symbian
    Replies: 0
    Last Post: 2007-06-08, 23:35

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×