Search plugin for Sopel IRC bots
Project description
sopel-search
Search plugin for Sopel IRC bots
Installing
Releases are hosted on PyPI, so after installing Sopel, all you need is pip
:
$ pip install sopel-search
Google query suggestions
If you want users to be able to fetch query suggestions from Google using the
.gsuggest
command, you will need the gsuggest
extra:
$ pip install sopel-search[gsuggest]
Configuring
The easiest way to configure sopel-search
is via Sopel's configuration
wizard—simply run sopel-plugins configure search
and enter the values for
which it prompts you. Available settings are:
-
region
: Set this to the primary geographical region of your bot's users, using one of the values from https://duckduckgo.com/paramsSetting this correctly may improve the relevance of both search results and query suggestions using
.suggest
. -
safesearch
: Controls SafeSearch filtering of.search
results; one of 'on', 'moderate', and 'off'.
Changelog
1.0.1
Bump DuckDuckGo library minimum version; older releases stopped working.
1.0.0
First release of sopel-search
.
This new search plugin apes a lot of behaviors from Sopel's built-in search
,
with the following notable changes:
.bing
is no longer available.search
is an alias to.ddg
, as.g
was already- Search
region
andsafesearch
level are now configurable .suggest
uses DuckDuckGo; Google suggestions are still available via the new.gsuggest
command (if optional extra dependencies are installed)
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
File details
Details for the file sopel_search-1.0.1.tar.gz
.
File metadata
- Download URL: sopel_search-1.0.1.tar.gz
- Upload date:
- Size: 5.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.0.0 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8cc22478d1a4f11c948625f112add5db306486a7d46d3a742b82814defd9fec8 |
|
MD5 | 4c662506c889f0686e3da139d13e2c5f |
|
BLAKE2b-256 | 68800fc0cf275e875b2f49e97797b79a75733063bad92e65a5b45b6b7af822d3 |
Provenance
File details
Details for the file sopel_search-1.0.1-py3-none-any.whl
.
File metadata
- Download URL: sopel_search-1.0.1-py3-none-any.whl
- Upload date:
- Size: 6.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.0.0 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a963162ea4d11948c9ed9b1bde081043158dcdb4cc8e2bb3be4da40f41aae575 |
|
MD5 | e6e7d841787af436bc035b2084cd975d |
|
BLAKE2b-256 | acc02c715fb015a8e9ca726aa95545f2c67df75e24b484d1b8fa2a5fda0d00c2 |