codelucas / flask_reddit

Reddit clone in flask + python + nginx + https. View site:
https://reddit.codelucas.com
MIT License
532 stars 106 forks source link

Add thumbnail extraction to threads #3

Closed codelucas closed 10 years ago

codelucas commented 10 years ago

We will directly use the code from Reddit's source to do this. Except, to avoid having to download and install PIL/Pillow, we will just scrape the image url and display that instead of actually downloading the image.

We will also use Beautifulsoup to avoid the painful lxml install. This library was built for cleanliness and minimizing dependencies instead of speed & or being optimal!

codelucas commented 10 years ago

This as just been finished and changes are visible on the main website. Refernece: https://github.com/codelucas/flask_reddit/commit/16fccda5a454089d47ad6627ddfbbbbc64948aa1