Generic crawling for web galleries
Project description
https://github.com/idlesign/gallerycrawler
Description
Generic crawling for galleries
Crawler starts from gallery listing URL;
It visits every details page mentioned on current listing page;
It gathers information from each details page;
It moves to the next listing URL.
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
)
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
gallerycrawler-0.1.0.tar.gz
(7.0 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file gallerycrawler-0.1.0.tar.gz.
File metadata
- Download URL: gallerycrawler-0.1.0.tar.gz
- Upload date:
- Size: 7.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: Python-urllib/2.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ce5d9a313c2cb1a53239aab13dc7ee039e9e1fa97a37c7e92d2fd163e6b44787
|
|
| MD5 |
0f18ddc0aa204f7f13914a40926e5e46
|
|
| BLAKE2b-256 |
8408a271ab768c38ae906531b1dd9b7845fab3a847eda1dd773581ceda825e9a
|
File details
Details for the file gallerycrawler-0.1.0-py2.py3-none-any.whl.
File metadata
- Download URL: gallerycrawler-0.1.0-py2.py3-none-any.whl
- Upload date:
- Size: 8.1 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: Python-urllib/2.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
65d7067fb463e6dee25e9ec081f75c9bb1938fae7fdad1c36ae332c370f381a3
|
|
| MD5 |
38d598dda5699cbce5236f1048e8b37a
|
|
| BLAKE2b-256 |
658c0f4bee660ac5412380c62b9dc32400732521989c6aaa0fb56865ae23335a
|