GithubHelp home page GithubHelp logo

kts915 / wp-content-downloader Goto Github PK

View Code? Open in Web Editor NEW

This project forked from cesar19004/wp-content-downloader

0.0 0.0 0.0 7 KB

WordPress Downloader. The script's main purpose is to provide an easier way to download all files inside wp-content/uploads directory

License: MIT License

Python 100.00%

wp-content-downloader's Introduction

Wordpress content downloader

WordPress Content Downloader provides an easier way to download all files and media inside wp-content/uploads directory. It also tries to skip image thumbnails, so only original files are downloaded

**This script only works if wp-content/uploads and their children directories are public and return the index of their content**

Usage

python3 main.py [wp-site_url]

Custom thumbnails regex

You can change the regex to find thumbnails with specific suffix, the file will be skipped only if exists another file without the suffix

E.g. let's say we have an original image image.jpg and 3 modified versions
image-16x16.jpgimage-e1676678024195.jpg and image-e1676678024195-10x10.jpg

To remove modified versions, the regexes to add and their order should be

thumbnails_regex_list = [
    "-\d{1,4}x\d{1,4}$", #first remove files with suffix of img size
    "-e\d{13}$", # next remove files with hash suffix from the remaining files
]

If you prefer to keep thumbnails, just left the list thumbnails_regex_list empty

Contributing

Although this is a small script, pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

License

MIT

wp-content-downloader's People

Contributors

cesar19004 avatar

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.