Discussion Board

Results 1 to 9 of 9
  1. #1
    Registered User ComplexT's Avatar
    Join Date
    Mar 2008
    Posts
    25
    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 kandyfloss's Avatar
    Join Date
    Dec 2007
    Location
    India
    Posts
    133
    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 ComplexT's Avatar
    Join Date
    Mar 2008
    Posts
    25
    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 croozeus's Avatar
    Join Date
    May 2007
    Location
    21.46 N 72.11 E
    Posts
    3,636
    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 ComplexT's Avatar
    Join Date
    Mar 2008
    Posts
    25
    Thanks Croozeus..

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

  6. #6
    Nokia Developer Champion gaba88's Avatar
    Join Date
    Feb 2008
    Location
    Ahmedabad, Gujarat, India
    Posts
    3,692
    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 ComplexT's Avatar
    Join Date
    Mar 2008
    Posts
    25
    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
    Nokia Developer Moderator bogdan.galiceanu's Avatar
    Join Date
    Oct 2007
    Location
    Deva, Romania
    Posts
    3,471
    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 gaba88's Avatar
    Join Date
    Feb 2008
    Location
    Ahmedabad, Gujarat, India
    Posts
    3,692
    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. HTTP headers for S60 3rd Ed. Browser
    By Nokia Ron in forum Mobile Web Site Development
    Replies: 16
    Last Post: 2009-09-22, 14:28
  2. Please help installing Python libraries on S60
    By ericroijen in forum Python
    Replies: 11
    Last Post: 2009-07-18, 10:43
  3. Replies: 12
    Last Post: 2008-11-04, 12:55
  4. Shameless plug: location aware web with Python!
    By jkirma in forum Geolocation and Navigation
    Replies: 0
    Last Post: 2008-01-08, 07:05
  5. 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
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved