Skip to main content

A simple module that searches on DuckDuckGo

Project description

DuckPy
A simple Python module that searches on DuckDuckGo.

Installation:

Duckpy can be installed using pip from PyPI or from GitHub

via PyPI using pip:

pip install -U duckpy

via GitHub using pip+git:

pip install -U git+https://github.com/AmanoTeam/duckpy

Usage:

To use duckpy is easy, but let's see some examples:

First example:

import duckpy

search = duckpy.search("test")

# Prints first result title
print(search["results"][0]["title"])

# Prints first result URL
print(search["results"][0]["url"])

# Prints first result description
print(search["results"][0]["description"])

The result will be like this:

Find online tests, practice test, and test creation software ...
https://www.test.com/
Online tests and testing for certification, practice tests, test making tools, medical testing and more.

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

duckpy-1.2.0.linux-x86_64.tar.gz (2.2 kB view details)

Uploaded Source

File details

Details for the file duckpy-1.2.0.linux-x86_64.tar.gz.

File metadata

  • Download URL: duckpy-1.2.0.linux-x86_64.tar.gz
  • Upload date:
  • Size: 2.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.7.3 requests-toolbelt/0.9.1 tqdm/4.30.0 CPython/3.7.2

File hashes

Hashes for duckpy-1.2.0.linux-x86_64.tar.gz
Algorithm Hash digest
SHA256 533efbdddff83b9a51197f12b805cb3f83dc76fa3bd4e1e693bd6da5d0a02c91
MD5 0f801e01a800dd301aa4e2f4b1f63777
BLAKE2b-256 8d80f54b9e17e1d8c82e9cc1906b7c09a5e109012a3f91a2caf8114d2f6850f7

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