This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
from scrapy.pipelines.images import ImagesPipeline | |
class FolderStructureImagePipeline(ImagesPipeline): | |
"""Store Images using a folder tree structure. | |
DEPTH attribute can be used to specify the depth of the tree. | |
""" | |
DEPTH = 3 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Description=Cronicle Service | |
After=network.target | |
[Service] | |
Restart=on-failure | |
Type=forking | |
ExecStart=/opt/cronicle/bin/control.sh start | |
ExecStop=/opt/cronicle/bin/control.sh stop | |
Restart=/opt/cronicle/bin/control.sh restart |