-
Export Media from WordPress:
- Go to your WordPress site.
- Navigate to
Settings > Export
. - Select the option to export media only.
-
Prepare the XML File:
- After exporting, place the XML file (
mint.WordPress.2024-04-30.xml
) inside the directory containing this script.
- After exporting, place the XML file (
-
Update the Script:
- Open the
download.py
file. - On line 31, change the file name to match your XML file. For example:
xml_file = 'icanq.WordPress.2024-04-30.xml'
- Open the
-
Install Required Packages:
- Ensure you have the
requests
package installed. - Run the following command in your terminal:
pip install requests
- Ensure you have the
-
Run the Downloader:
- Execute the script by running:
python download.py
- Execute the script by running:
-
Download Media:
- If the XML file is correctly placed and your internet connection is stable, the media files will be downloaded shortly.
By following these steps, you should be able to download all your media files from the WordPress XML export.