<commit_before># Magerun Download Remote Media

A n98-magerun module to download product images from a production server.

## Installation


## Usage

<commit_msg>Update README with usage/installation information<commit_after># Magerun Download Remote Media

A n98-magerun module to download product images from a production server.

## Installation

You just need to clone this repo into a ~/.n98-magerun/modules folder, then magerun will pick it up.

    cd ~
    mkdir -p .n98-magerun/modules
    cd .n98-magerun/modules
    git clone <EMAIL>:meanbee/download-remote-media.git

## Usage

Fetch all images for all products:

    n98-magerun.phar media:fetch:products --remote-url=http://www.clientwebsite.com/
    
Fetch only specific products by SKUs:

    n98-magerun.phar media:fetch:products --remote-url=http://www.clientwebsite.com/ --skus=abc1,abc2,abc3,abc4
    
Only want certain image attributes downloaded? No problem!
    
    n98-magerun.phar media:fetch:products --remote-url=http://www.clientwebsite.com/ --image-attributes=small_image,custom_image

{'fraction_non_alphanumeric': 0.09380863039399624, 'fraction_numerical': 0.01876172607879925, 'mean_word_length': 3.9627906976744187, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, 'https://': 0, 'lorem ipsum': 0, 'www.': 3, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 6, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6450090', 'n_tokens_mistral': 349, 'n_tokens_neox': 329, 'n_words': 97}