Python API wrapper for darksearch.io
Project description
Python API wrapper for darksearch.io
Install
pip install darksearch
Usage
import darksearch
results = darksearch.search("query")
"""
`results` is a JSON dict object like this
{
"total": int,
"per_page": int,
"current_page": int,
"last_page": int,
"from": int,
"to": int,
"data": [
{
"title": string,
"link": string,
"description": string
}
]
}
"""
results_page_2 = darksearch.search("query", page=2)
"""
`results_page_2` is a JSON dict object like this
{
"total": int,
"per_page": int,
"current_page": 2,
"last_page": int,
"from": int,
"to": int,
"data": [
{
"title": string,
"link": string,
"description": string
}
]
}
"""
results_pages = darksearch.search("query", pages=2)
"""
`results_pages` is a list of JSON dict objects like this
[
{
"total": int,
"per_page": int,
"current_page": 1,
"last_page": int,
"from": int,
"to": int,
"data": [
{
"title": string,
"link": string,
"description": string
}
]
},
...
]
"""
results_pages = darksearch.search("query", pages=2, wait=2)
"""
`wait` is the seconds between requests (DarkSearch's API is limited to 30 requests per minute.)
`results_pages` is a list of JSON dict objects
[
{
"total": int,
"per_page": int,
"current_page": 1,
"last_page": int,
"from": int,
"to": int,
"data": [
{
"title": string,
"link": string,
"description": string
}
]
},
...
]
"""
status = darksearch.crawling_status()
"""
Number of pages indexed
"""
Testing
pytest
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
DarkSearch-1.3.6.tar.gz
(3.3 kB
view hashes)
Built Distributions
Close
Hashes for DarkSearch-1.3.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7c6ad56850a14a9a8dfaef7e6a192eb0d039d1ea39234b093da7701019e1b8bf |
|
MD5 | 64b13820e5c56f49ad818f50ea98b65e |
|
BLAKE2b-256 | 12fe5db46df2a4a07afc48195b20f92de984f47d5f8df47327287c70e4256518 |
Close
Hashes for DarkSearch-1.3.6-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 023816e568169d6d2677b9603f12c15eb87ff6ca9644b5f903f4a3d6f5424dc9 |
|
MD5 | 22e2f344a38cce50851b3e6b6c9b0628 |
|
BLAKE2b-256 | ce89917fc020c85c1670dc2b5fe84412e4ca430fd80203c05fc671a3cdb2b845 |