A spider library of several data sources
Project description
DataSpider
A spider framework with several internal spiders.
Thanks
Thanks JetBrains provided FREE PyCharm Professional for this project.
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.8.tar.gz
(31.7 kB
view details)
Built Distribution
File details
Details for the file tsingspider-1.4.8.tar.gz
.
File metadata
- Download URL: tsingspider-1.4.8.tar.gz
- Upload date:
- Size: 31.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.10.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f44815e155e9c5464eac361dcf16cc74ce32af8aa4df5bb181cb1f6cb1acb3a1 |
|
MD5 | 61669596e9349438750accdcf37ce743 |
|
BLAKE2b-256 | d904c613175bd977e951fdc2b9b8cc9c882b3184a1ad7f615dd0396778be6e20 |
File details
Details for the file tsingspider-1.4.8-py3-none-any.whl
.
File metadata
- Download URL: tsingspider-1.4.8-py3-none-any.whl
- Upload date:
- Size: 37.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.10.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 976fa22b845a5386ad8117cf7cb1521029aaf661ef745c8d5e54145eaef99655 |
|
MD5 | 23e6f7e910779c57951da53d83084530 |
|
BLAKE2b-256 | 021886beb1e0361295fbd3bcb64cf065b4de5233fe9bb302883d57adb21c8586 |