Skip to main content

scrapy-folder-tree

build PyPI GitHub license PyPI - Format PyPI - Status Code style: black Checked with mypy Imports: isort

This is a scrapy pipeline that provides an easy way to store files and images using various folder structures.

Supported folder structures:

Given this scraped file: 05b40af07cb3284506acbf395452e0e93bfc94c8.jpg, you can choose the following folder structures:

Using file name

class: scrapy-folder-tree.ImagesHashTreePipeline

full
├── 0
.   ├── 5
.   .   ├── b
.   .   .   ├── 05b40af07cb3284506acbf395452e0e93bfc94c8.jpg
Using crawling time

class: scrapy-folder-tree.ImagesTimeTreePipeline

full
├── 0
.   ├── 11
.   .   ├── 48
.   .   .   ├── 05b40af07cb3284506acbf395452e0e93bfc94c8.jpg
Using crawling date

class: scrapy-folder-tree.ImagesDateTreePipeline

full
├── 2022
.   ├── 1
.   .   ├── 24
.   .   .   ├── 05b40af07cb3284506acbf395452e0e93bfc94c8.jpg

Installation

pip install scrapy_folder_tree

Usage

Use the following settings in your project:

ITEM_PIPELINES = {
    'scrapy_folder_tree.FilesHashTreePipeline': 300
}

FOLDER_TREE_DEPTH = 3

Metadata

Release files for scrapy-folder-tree 0.1.3

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

Source distribution (sdist)

Source distribution for scrapy-folder-tree 0.1.3
File Size Uploaded Provenance Actions
scrapy-folder-tree-0.1.3.tar.gz 4.1 kB Without provenance Details for scrapy-folder-tree-0.1.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for scrapy-folder-tree 0.1.3
File Interpreter ABI Platform Actions
scrapy_folder_tree-0.1.3-py3-none-any.whl Python 3 none any Details for scrapy_folder_tree-0.1.3-py3-none-any.whl

Total release size: 9.1 kB

Release files / scrapy-folder-tree-0.1.3.tar.gz

Download URL scrapy-folder-tree-0.1.3.tar.gz
Size 4.1 kB
Tags Source
SHA-256 checksum
How to use checksums
5568ea3ec11aae42155e08cdb585516292779139216640cadfcb59759448252d
BLAKE2b-256 checksum
How to use checksums
06790ab65d7b75e6848b80ebd9b2ca4b09a6a439d1a22458d6ff9bbb6f4c401a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.12 CPython/3.10.1 Linux/5.13.19-2-MANJARO

Release files / scrapy_folder_tree-0.1.3-py3-none-any.whl

Download URL scrapy_folder_tree-0.1.3-py3-none-any.whl
Size 5.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a407ffc0ba26d66cbb870880a1fe90a59e8e8a2aec83e55f8a7cd24b40d83f63
BLAKE2b-256 checksum
How to use checksums
7263ee311de80558f06c38ab4132bf3ffdd26b781a5bbdd049955fe59f4a6aab
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.12 CPython/3.10.1 Linux/5.13.19-2-MANJARO

Security for scrapy-folder-tree 0.1.3

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.3 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