Python package to query uloz.to
Project description
ulozto-search
Search uloz.to for files using Python. It only supports one-page query for now.
Install
It's avaiable in PyPI, so you can use pip
to install it:
python -m pip install ulozto-search
Usage
import ulozto_search
query = "your_query"
file_type = "documents|videos|images|archives|audios" # optional
kwargsSearch = {
"insecure": False # disables SSL check, optional, default False
"includeApproximate": False # also return approximate results
}
kwargsSearchHTML = {
"insecure": False # same as previous one
}
# search and return dictionary
ulozto_search.search(query, file_type, **kwargsSearch)
# search and return HTML string
ulozto_search.searchHTML(query, file_type, **kwargsSearchHTML)
It can be also used from terminal:
$ ulozto-search -h
usage: ulozto-search [-h] [-t {documents,videos,images,archives,audios}] [--insecure] [--show-approximate] query
positional arguments:
query String to query uloz.to
optional arguments:
-h, --help show this help message and exit
-t {documents,videos,images,archives,audios}, --type {documents,videos,images,archives,audios}
Filter by file type
--insecure Don't verify SSL certificates, not recommended
--show-approximate Show approximate results
So if you want to download all files found by ulozto-search, enter this to terminal (uses ulozto-downloader):
ulozto-search "your query" | while read in; do ulozto-downloader --auto-captcha $(echo "$in" | cut -d '|' -f2); done
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
ulozto_search-1.0.3.tar.gz
(15.2 kB
view hashes)
Built Distribution
Close
Hashes for ulozto_search-1.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4988935eb62a6f64b8504e9eb979c159059cc5ccb4d0a4b5553b802aebb38765 |
|
MD5 | 62e95b1f280cfcaaf8c071a9a82077fd |
|
BLAKE2b-256 | cf1b327916330b497aba993a8873eefb36a35f682dd0399f9e0e3e3450dfd0b6 |