3 ms·
Repeating a somewhat lengthy action 2000 times is for me an excuse to look into automating this with something like selenium or autohotkey. Something that autom
by nomercy400 5y ago
Repeating a somewhat lengthy action 2000 times is for me an excuse to look into automating this with something like selenium or autohotkey. Something that automates mouse 'clicks' on a browser.
Measure how much time it would take to remove 5 images, multiply by 400. Can you automate it in less? Note that you might learn something new, and because it is a one-time script, it can be super hacky.
- fmajid 5y agoWordpress has an API. Also, the underlying MySQL DB could be used, but I don't know if that is exposed by WP.com.
- deleted 5y ago[deleted]
- Derbasti 5y agoWell, the entire operation took maybe 20 minutes. I connected a graphics tablet for the occasion, which made click-click-clicking the pictures relatively quick. I did actually weigh that time against how long it might take me to find/learn/use the API, but 20 minutes for a one-time task seemed preferable. Plus I could listen to podcasts. Honestly, the painful part was re-importing all the original images and rebuilding all the galleries. But there was a convenient mandatory all-day online management training coming up at work that proved perfect for the job. That part took a good six hour, modulo some management training nonsense.