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

This plugin is designed for use with Sopel version 8.0+, but may have a higher minimum Python version requirement than Sopel itself.

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.2.0

  • Upgrade DDGS library from 6.x to 8.x (#6)
    • This also required raising the minimum Python version to 3.9
  • Update package metadata for PEP 639 (#7)

1.1.0

  • Handle common errors with some amount of grace (#4)
  • Refresh the DDGS client periodically to reduce errors (#5)

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 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.2.0.tar.gz (5.9 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.2.0-py3-none-any.whl (6.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: sopel_search-1.2.0.tar.gz
  • Upload date:
  • Size: 5.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for sopel_search-1.2.0.tar.gz
Algorithm Hash digest
SHA256 0be7c418e8a0dc929ded80d26d87cb4d61c3da9dbdf0b8d71fcd6109bd552414
MD5 3ad4cc649995e55e20b79ba372da9e49
BLAKE2b-256 f4f1288096633e5d737fa3b2b107afd478a2e1362d9c16fbdc378fb07bd1571e

See more details on using hashes here.

Provenance

The following attestation bundles were made for sopel_search-1.2.0.tar.gz:

Publisher: trusted-publishing.yml on sopel-irc/sopel-search

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

  • Download URL: sopel_search-1.2.0-py3-none-any.whl
  • Upload date:
  • Size: 6.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for sopel_search-1.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b6c4d90af0a77268507bbcb8d81e9a970f5f0ad025d273a4723ee9d46e909141
MD5 c990fadbeaf3ffea054c9d225441b6c1
BLAKE2b-256 bdeb134a1ebb610ad0e10f2c1d4b00fd47519aa48fcda1053e67f24bef3bff55

See more details on using hashes here.

Provenance

The following attestation bundles were made for sopel_search-1.2.0-py3-none-any.whl:

Publisher: trusted-publishing.yml on sopel-irc/sopel-search

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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