Coder Social home page Coder Social logo

sp1thas / scrapy-folder-tree Goto Github PK

View Code? Open in Web Editor NEW
8.0 3.0 2.0 577 KB

A scrapy pipeline which stores files using folder trees.

Home Page: https://scrapy-folder-tree.simakis.me/?utm=gh

License: MIT License

Python 100.00%
scrapy scrapy-extension scrapy-pipeline folder-structure folder-tree python3 hacktoberfest

scrapy-folder-tree's People

Contributors

alexndrmac avatar hemantsachdeva avatar pre-commit-ci[bot] avatar sp1thas avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

scrapy-folder-tree's Issues

Run unit-tests on Python `3.11`

testing job within the build workflow should be executed on python 3.11 too. Feel free to add the extra python to the list.

Introduce `FOLDER_TREE_LENGTH` config parameter on `scrapy_folder_tree.FilesHashTreePipeline`

Given this filename: abcdefg.png and FOLDER_TREE_LENGTH=2

Currently, when using the scrapy_folder_tree.FilesHashTreePipeline pipeline, the file path will look like a/b/abcdefg.png.

An extra config value (FOLDER_TREE_LENGTH) should be added similar to FOLDER_TREE_LENGTH in order to allow the user to specify the folder length. For example, if FOLDER_TREE_LENGTH is equal to 2, the file path should look like ab/cd/abcdefg.png etc.

In order to support this functionality, the extra config should be added here and the filename should be split, based on the FOLDER_TREE_LENGTH here.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.