Skip to main content

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/params

    Setting 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.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 and safesearch 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


Download files

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

Source Distribution

sopel_search-1.0.0.tar.gz (5.0 kB view details)

Uploaded Source

Built Distribution

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

sopel_search-1.0.0-py3-none-any.whl (5.9 kB view details)

Uploaded Python 3

File details

Details for the file sopel_search-1.0.0.tar.gz.

File metadata

  • Download URL: sopel_search-1.0.0.tar.gz
  • Upload date:
  • Size: 5.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.0.0 CPython/3.12.5

File hashes

Hashes for sopel_search-1.0.0.tar.gz
Algorithm Hash digest
SHA256 6153e6f15f576485b9f85bea581f0916351cd9452cdaac420d622f85767f9418
MD5 fa13076564f0d7aa44adde22dfcb344d
BLAKE2b-256 6904639abc78da2d38495627b6cb841c6c48a11854b3c177509c5b369fb7f8db

See more details on using hashes here.

File details

Details for the file sopel_search-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: sopel_search-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 5.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.0.0 CPython/3.12.5

File hashes

Hashes for sopel_search-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a6ee7faf255daa535211e25bace339017cb822229e07dce68b0ac0f2e4f90919
MD5 b19b28d0a72fda9c06f1ab3d87a075bd
BLAKE2b-256 770430ae4d62f3847fe859a813f0173a5d3a9b93381a751ccab9b0bf7758aecc

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