Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Search by keyword
#1
I'm making an ai in python 2.7.13 and I looked around but can't figure out how to get it to search google by keyword. Ex: instead of typing "google" than it says "what do you want to search" I want to be able to say "I want to search google" or "google search" and all it has in it is the word google. I don't think there needs to be code for this question but can anyone tell me how to do this
Reply
#2
I don't know a whole lot about ai, but the nltk (natural language toolkit) is pretty powerful stuff: http://www.nltk.org/
Reply
#3
This may be of help: https://pypi.python.org/pypi/sitesearcher/0.1a2
since it is itself a command line tool, I would download the source: http://pypi.python.org/pypi/sitesearcher
and examine the code to see how the search is done. You may then be able to adapt for your requirement.
There are other candidates here: https://pypi.python.org/pypi?%3Aaction=s...mit=search
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Find a specific keyword after another keyword and change the output sgtmcc 5 746 Oct-05-2023, 07:41 PM
Last Post: deanhystad
  Trying to search and make new column from the keyword. dgarg 1 1,452 Dec-20-2021, 08:41 PM
Last Post: deanhystad
  search binary file and list all founded keyword offset Pyguys 4 2,698 Mar-17-2020, 06:46 AM
Last Post: Pyguys
  Keyword search in resumes Jammy 3 3,385 Oct-09-2017, 04:20 PM
Last Post: nilamo

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020