Skip to main content

A spider library of several data sources

Project description

DataSpider

Upload Python Package

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


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

Uploaded Source

Built Distribution

tsingspider-1.4.10-py3-none-any.whl (37.4 kB view details)

Uploaded Python 3

File details

Details for the file tsingspider-1.4.10.tar.gz.

File metadata

  • Download URL: tsingspider-1.4.10.tar.gz
  • Upload date:
  • Size: 31.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.8

File hashes

Hashes for tsingspider-1.4.10.tar.gz
Algorithm Hash digest
SHA256 26114b4cd770704a575372cad74057684fbea2018dcf80d99f6f34f6f3c51087
MD5 78ce66b5fb7a023062623b875b4dcce8
BLAKE2b-256 6e0bac2e0e03a5f43ecedb15688462fef9ad3275834e6dc14a5579a32fc6bc18

See more details on using hashes here.

File details

Details for the file tsingspider-1.4.10-py3-none-any.whl.

File metadata

File hashes

Hashes for tsingspider-1.4.10-py3-none-any.whl
Algorithm Hash digest
SHA256 7c7876ade49d2664b6082bd02da44f7e066fc3aa5a9f8b7a7f6a9619dad673fe
MD5 b79ad1ba1444ac7dd86957abe4b99f06
BLAKE2b-256 3c20a082d7bb6b8bb95982eb7e1d1fcf3705b44478e7e2918c46d94a25615716

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page