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
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for example-search-balancy-0.9-0.9.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 14bc71f2cdcf8be4019e851481e2db2fbcc62317e4c25e2cba1d0cd9100efd16 |
|
MD5 | 8861cb3856f25731da97e59ad94f446b |
|
BLAKE2b-256 | 7c11d729bfb675e1b40e621630d889bb1a3099c98629be777bfe5a7505c942db |
Hashes for example_search_balancy_0.9-0.9-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e77d06639e4fec5a569b3b15139831fb140c9595e0f7d3d2fd9eaa0229c17cca |
|
MD5 | 5f0957e3aefc6c407cafa93b89dc7ee1 |
|
BLAKE2b-256 | 8497347844fd4a427c8b2aec45ffe3e7546a4e15d68f83f27672fcd1a57a5c38 |