⚡️ Quick and easy search engine queries.
Project description
Searchor
⚡️ 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_webparameter in the search function which is default set toFalseand can be madeTrueto 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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b58241d92457aa9be308d4040774eb925a32e1a6b18a50459b4f90c1c21f9643
|
|
| MD5 |
173d0b1c01d9357d7ec98dcd9af6a36b
|
|
| BLAKE2b-256 |
5e9a393c9450a852dc6df15bcc2abe42a2ac7bb998170e1062e8b9cdad63849a
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b79eed6710dc65cc5fd7f340d9570c8250a27b44c89b751e5c662f3257c40f4d
|
|
| MD5 |
55c48881b17015cabf329046d997049c
|
|
| BLAKE2b-256 |
f48cd54fb84e417b1f977e2f857b64f8ba3964f72569dfc22c589cbbc0aa661a
|