Walmart Web Scraper

WALMART IMAGE SCRAPER.

Scrapes images from your list on WALMART

Author: ehgp

webscraperwmt.format_filename(s)

Take a string and return a valid filename constructed from the string.

Uses a whitelist approach: any characters not present in valid_chars are removed. Also spaces are replaced with underscores.

Note: this method may produce invalid filenames such as ``, . or .. When I use this method I prepend a date string like ‘2009_01_15_19_46_32_’ and append a file extension like ‘.txt’, so I avoid the potential of using an invalid filename.