Skip to main content

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
kwargs = {
    "insecure": False           # disables SSL check, optional, default False
    "includeApproximate": False  # also return approximate results
}

# search and return dictionary
ulozto_search.search(query, file_type, **kwargs)

# search and return HTML string
ulozto_search.searchHTML(query, file_type, **kwargs)

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.4.tar.gz (15.2 kB view details)

Uploaded Source

Built Distribution

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

ulozto_search-1.0.4-py3-none-any.whl (12.1 kB view details)

Uploaded Python 3

File details

Details for the file ulozto_search-1.0.4.tar.gz.

File metadata

  • Download URL: ulozto_search-1.0.4.tar.gz
  • Upload date:
  • Size: 15.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.1

File hashes

Hashes for ulozto_search-1.0.4.tar.gz
Algorithm Hash digest
SHA256 6d6359b3c6c87b5593ed43786a816b6bec8f2f001529d17710edaaad58af603a
MD5 09a8dac3840b4097439fc34952ec5a4f
BLAKE2b-256 9cdb766f2170497331c78313537a307fd5e30f76ebd34c8aad8bf7e1eaf74b65

See more details on using hashes here.

File details

Details for the file ulozto_search-1.0.4-py3-none-any.whl.

File metadata

  • Download URL: ulozto_search-1.0.4-py3-none-any.whl
  • Upload date:
  • Size: 12.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.1

File hashes

Hashes for ulozto_search-1.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 3494626f49f69a27bf9f1ac9d305ba42601997d38c9d9728c7639cc1807a3093
MD5 bfc32a225ae77815d6cf93025e7bdd15
BLAKE2b-256 1fe6fb9331522b38797770d86f32d6638aaa2ace93bfb7b09fda3d4acd276b2f

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