build a meme Python website (Flask Tutorial for Beginners)
About this video
NetworkChuck builds a meme website as a beginner Flask tutorial, arguing that Flask — a lightweight Python web framework he calls a micro-framework — lets you turn Python projects into websites without learning much beyond Python itself. He works on a Linux machine (he spins up a Linode VM, saying new users get $100 credit free for 60 days) and installs Python’s pip, then Flask and the requests library with pip3. The first mini-app, flask_test.py, imports Flask, creates the app with Flask(name), uses the @app.route(’/’) decorator to bind the root URL to an index function that returns a string, and runs it with app.run on host 0.0.0.0, port 80; he notes the development-server warning is fine for this purpose. For the real site he creates a meme_flask directory and a meme_flask.py script that also imports render_template, requests and JSON, defines a get-meme function (code supplied below the video) that calls an API to fetch a random meme from a chosen subreddit, and passes the meme data as variables into an HTML template. Because Flask expects templates in a templates folder, he places meme_index.html there; the HTML uses double-bracket placeholders that receive the variables passed from Python. Running the script initially fails with a name error because he forgot to define the app variable, which he fixes live before the site loads a fresh meme. He gives his own use case as motivation: a dashboard tracking his daughters’ ‘key balances’ — a cryptocurrency he built for their allowance — using Python, the Solscan API and Flask, so he does not have to check wallets manually. He acknowledges going high-level for beginners and points viewers to a linked write-up and lab for the full scripts, including how to make the site persistent across reboots.
Key takeaways
- Flask is a lightweight Python micro-framework: install pip, then Flask and requests with pip3
- Core pattern: app = Flask(name), @app.route(’/’) decorator on a function, then app.run(host 0.0.0.0, port 80)
- Use render_template to pass Python variables into an HTML file kept in a templates folder, referenced with double-bracket placeholders
- A requests-based helper function can call an external API (here a meme API for Reddit) and feed its data to the page
- The same pattern powers his real dashboard tracking his daughters’ crypto allowance balances via the Solscan API
Episode details: published August 29, 2022 · 13:30 long. Summary written by Self Growth Videos from the episode itself. Business results and any income figures mentioned are NetworkChuck’s own claims, shared for education — they are not typical or guaranteed.
← Previous: a BASH script PUSH-UP counter (for #gains ) · Next: How YouTubers Get Hacked →
All NetworkChuck videos · NetworkChuck profile · NetworkChuck on YouTube





