Skip to main content

⚡️ Quick and easy search engine queries.

Project description

Searchor

PyPI Discord

⚡️ Quick and easy search engine queries.

Installation

Python 3.7+ is required

# MacOS / Linux (via Terminal)
python3 -m pip install -U searchor

# Windows (via CMD Prompt)
py -3 -m pip install -U searchor

Quick Start

>>> from searchor import Engine
>>> Engine.Google.search("Hello, World!")
'https://www.google.com/search?q=Hello%2C%20World%21'

Take a look at more examples in the examples folder!

Note:  Engine names follow the UpperCamelCase convention.(eg: ChromeWebStore).

v2.2.0 Changes

  • [BREAKING] Engine class is now subclassed as an enumerator
  • [BREAKING] Removed engine_list
  • [BREAKING] Changed search function to be inside the Engine class
  • [ADDED] Added a additional_queries parameter in the search function
  • [ADDED] Added a open_web parameter in the search function which is default set to False and can be made True to open a URL with Searchor in a new window with your default browser.
  • [ADDED] Added GitLab search engine

Migration

Instead of different functions for each engine, Searchor v2.2.0 uses a single function with an Engine enum. This makes it easier to use and maintain. If you're migrating from v2.0.0, compare the differences between the following snippets:

# Searchor 2.0.0
from searchor import search, Engine
search("Hello, World!", Engine.Google)
# Searchor v2.2.0
from searchor import Engine
Engine.Google.search("Hello, World!")

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

searchor-2.2.0.tar.gz (4.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

searchor-2.2.0-py3-none-any.whl (5.0 kB view details)

Uploaded Python 3

File details

Details for the file searchor-2.2.0.tar.gz.

File metadata

  • Download URL: searchor-2.2.0.tar.gz
  • Upload date:
  • Size: 4.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.14

File hashes

Hashes for searchor-2.2.0.tar.gz
Algorithm Hash digest
SHA256 b58241d92457aa9be308d4040774eb925a32e1a6b18a50459b4f90c1c21f9643
MD5 173d0b1c01d9357d7ec98dcd9af6a36b
BLAKE2b-256 5e9a393c9450a852dc6df15bcc2abe42a2ac7bb998170e1062e8b9cdad63849a

See more details on using hashes here.

File details

Details for the file searchor-2.2.0-py3-none-any.whl.

File metadata

  • Download URL: searchor-2.2.0-py3-none-any.whl
  • Upload date:
  • Size: 5.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.14

File hashes

Hashes for searchor-2.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b79eed6710dc65cc5fd7f340d9570c8250a27b44c89b751e5c662f3257c40f4d
MD5 55c48881b17015cabf329046d997049c
BLAKE2b-256 f48cd54fb84e417b1f977e2f857b64f8ba3964f72569dfc22c589cbbc0aa661a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page