What many people do is buy them from places like Kobo.com, download them, and remove the DRM (usually via plugins to the Calibre library management software).
Kindle books have become impossible to download, but other online bookstores aren't as restrictive.