A spider library of several data sources
Project description
DataSpider
A spider framework with several internal spiders.
Install
pip install --upgrade tsingspider
Features
- Light-weight: do not have to start browser simulator, won't cost lots of resources
- But not all the website can download in this way
- Lazy: won't download anything before you actually use the data
- Useful Utilities
- Support HLS download
- Support cookies from firefox
- Support Proxies
- Generate magnet link from torrent data
Write Your Own Spider
To define a resource, you can use LazySoup
or LazyContent
.
LazyContent
is for binary data, basically all kinds of the data are binary.
LazySoup
is for the XML format resource, widely be used for downloading web-page.
For example:
from tsing_spider.util import LazySoup, LazyContent
class YourOwnSpider(LazySoup):
def __init__(self, url:str):
LazySoup.__init__(self, url)
@property
def some_info(self) -> str:
"""
Extract information from self.soup
the data will be downloaded at the first time of using it
"""
pass
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
tsingspider-1.4.6.tar.gz
(19.2 kB
view details)
Built Distribution
File details
Details for the file tsingspider-1.4.6.tar.gz
.
File metadata
- Download URL: tsingspider-1.4.6.tar.gz
- Upload date:
- Size: 19.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c66bd4a5b1f59891755863eb79863be5595ef5d87afb74e55b4bea8f1e32f01f |
|
MD5 | c23769533b09af85bd0e28600646cf71 |
|
BLAKE2b-256 | ce4ed65ce4b4947c3c9a51091b7ffdad787e3fa3b699d2b209e6b2301b211699 |
File details
Details for the file tsingspider-1.4.6-py3-none-any.whl
.
File metadata
- Download URL: tsingspider-1.4.6-py3-none-any.whl
- Upload date:
- Size: 37.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fe32197566ec1179ab35f361687bfffc0d2d900c8410caefbdb5c8012296029c |
|
MD5 | 581674298a01cc37cc9bbba41fb9f33b |
|
BLAKE2b-256 | d4179d82773e02688020d9ab42c97f944e359d2df9673993c564262e8bfb34d1 |