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.

Files for duckpy, version 1.2.1
Filename, size File type Python version Upload date Hashes
Filename, size duckpy-1.2.1.tar.gz (1.9 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page