Skip to main content

No project description provided

Project description

Search

Script's main functionality is searching for a keyword or a phrase via bing.com or duckduckgo.com search engines.

It allows choosing search engine, number of results, saving format, possibility to search urls recursively.

How to install locally

Python3 and Pip3 should be already installed.

Installation is made by command:

pip install search

How to use

The usual way to use search is follow:

from search import search
search(keyword="python")

Complete list of script arguments :

keyword - is a word, or a phrase to search. Default value is 'python'.

engine is the search engine to use for search (bing, duckduckgo). Default value is 'bing'.

number is the number of searched urls of 1st rang. Default value is 3.

number2 is the number of recursively searched urls of 2nd rang. Default value is 2.

format is saving format (csv, json, console). Default value is 'json'.

recursively if is True, then script will use recursive searching.

Example of using search with arguments:

search(engine="bing", number=2, number2=3, recursively=True, keyword="javascript", format="console")

In this case it will search for a phrase "javascript" via bing search engine and will print into console 8 found urls (2 urls of 1st rang and 2*3 urls of 2nd rang)

Project details


Release history Release notifications | RSS feed

This version

0.9

Download files

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

Source Distribution

example-search-balancy-0.9-0.9.tar.gz (4.3 kB view details)

Uploaded Source

Built Distribution

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

example_search_balancy_0.9-0.9-py3-none-any.whl (4.6 kB view details)

Uploaded Python 3

File details

Details for the file example-search-balancy-0.9-0.9.tar.gz.

File metadata

  • Download URL: example-search-balancy-0.9-0.9.tar.gz
  • Upload date:
  • Size: 4.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.5

File hashes

Hashes for example-search-balancy-0.9-0.9.tar.gz
Algorithm Hash digest
SHA256 14bc71f2cdcf8be4019e851481e2db2fbcc62317e4c25e2cba1d0cd9100efd16
MD5 8861cb3856f25731da97e59ad94f446b
BLAKE2b-256 7c11d729bfb675e1b40e621630d889bb1a3099c98629be777bfe5a7505c942db

See more details on using hashes here.

File details

Details for the file example_search_balancy_0.9-0.9-py3-none-any.whl.

File metadata

  • Download URL: example_search_balancy_0.9-0.9-py3-none-any.whl
  • Upload date:
  • Size: 4.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.5

File hashes

Hashes for example_search_balancy_0.9-0.9-py3-none-any.whl
Algorithm Hash digest
SHA256 e77d06639e4fec5a569b3b15139831fb140c9595e0f7d3d2fd9eaa0229c17cca
MD5 5f0957e3aefc6c407cafa93b89dc7ee1
BLAKE2b-256 8497347844fd4a427c8b2aec45ffe3e7546a4e15d68f83f27672fcd1a57a5c38

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