Code Monkey home page Code Monkey logo

nlp's Introduction

Google Custom Search CLI Tool

nlp

This tool enables users to search Google through a custom search engine right from the command line. Written in Python, it tokenizes user queries, sends them to the Google Custom Search API, and then neatly displays the results.

Table of Contents

Installation

  1. Ensure you have Python installed on your machine.
  2. Clone this repository:
    git clone <repository-link>
    
  3. Install the required dependencies:
    pip install nltk requests BeautifulSoup4
    

Usage

  1. Before running the script, make sure to fill in the cx (Programmable Search Engine ID) and api_key (Google API Key) variables in the main() function.
  2. Run the script:
    python <script-name>.py
    
  3. Follow the on-screen prompts. Type in your query and press Enter.
  4. To exit the tool, simply type exit.

Features

  • Tokenizing User Queries: Breaks down user's queries into individual words using the Natural Language Toolkit (NLTK).
  • Google Custom Search Integration: Sends the tokenized queries to Google's Custom Search API.
  • Beautiful Output: Parses and displays search results in a readable and user-friendly manner.

Author

  • Fadi Helal

License

This project is open-sourced. Feel free to use, modify, and distribute the code. We'd appreciate it if you give credit to the original author.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.