Skip to main content

gallerycrawler

https://github.com/idlesign/gallerycrawler

release lic

Description

Generic crawling for galleries

  1. Crawler starts from gallery listing URL;

  2. It visits every details page mentioned on current listing page;

  3. It gathers information from each details page;

  4. It moves to the next listing URL.

  5. Etc.

from galerycrawler.toolbox import Crawler, dump

# Define crawler.
class MyCrawler(Crawler):

    selector_listing_next: str = '.page-next a'
    selector_listing_thumbnails: str = '.thumbnail img'
    selector_details: str = '.page-details a'
    selector_details_title: str = '.page-title'
    selector_details_img: str = '.image img'
    selector_details_author: str = '.image-author'

# Run dumping.
dump(
    crawler=MyCrawler,
    url='https://mysite.some/gallery/',
    fpath='dumped.html',
    probe=True,  # Use this to quick test your crawler
)

Metadata

Release files for gallerycrawler 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for gallerycrawler 0.1.0
File Size Uploaded Provenance Actions
gallerycrawler-0.1.0.tar.gz 7.0 kB Without provenance Details for gallerycrawler-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for gallerycrawler 0.1.0
File Interpreter ABI Platform Actions
gallerycrawler-0.1.0-py2.py3-none-any.whl Python 2, Python 3 none any Details for gallerycrawler-0.1.0-py2.py3-none-any.whl

Total release size: 15.1 kB

Release files / gallerycrawler-0.1.0.tar.gz

Download URL gallerycrawler-0.1.0.tar.gz
Size 7.0 kB
Tags Source
SHA-256 checksum
How to use checksums
ce5d9a313c2cb1a53239aab13dc7ee039e9e1fa97a37c7e92d2fd163e6b44787
BLAKE2b-256 checksum
How to use checksums
8408a271ab768c38ae906531b1dd9b7845fab3a847eda1dd773581ceda825e9a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via Python-urllib/2.7

Release files / gallerycrawler-0.1.0-py2.py3-none-any.whl

Download URL gallerycrawler-0.1.0-py2.py3-none-any.whl
Size 8.1 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
65d7067fb463e6dee25e9ec081f75c9bb1938fae7fdad1c36ae332c370f381a3
BLAKE2b-256 checksum
How to use checksums
658c0f4bee660ac5412380c62b9dc32400732521989c6aaa0fb56865ae23335a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via Python-urllib/2.7

Security for gallerycrawler 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page