earn the White PyBites Ninja earn the Yellow PyBites Ninja earn the Orange PyBites Ninja right arrow earn more PyBites Ninja belts and certificates
The best way to learn to code in Python is to actually use the language.

Our platform offers effective Test Driven Learning which will be key to your progress.


Join thousands of Pythonistas and start coding!


Join us on our PyBites Platform
Click here to code!

How to Create and Serve Zipfiles from Django

Posted by Bob on Wed 08 May 2019 in Django • Tagged with Django, zipfile, snippets, archive, response, request, admin, DB, sqlite3, migrations, virtualenv • 6 min read

We added support to our platfom for bulk downloading of all your code submissions. This feature required creating and serving up zipfiles through Django. In this article I show you how to do it creating a simple Django app collecting code snippets through the admin interface, and serving them up in a zipfile via a download endpoint. Let's dive straight in ...


Continue reading

PyBites Twitter Digest - Issue 04, 2019

Posted by PyBites on Sun 07 April 2019 in Digest • Tagged with twitter, news, pybites, vs code, podcast, pycon, django, raspberry pi, computer vision, Flask, data science, resources, vim • 2 min read

Every weekend we share a curated list of 15 cool things (mostly Python) that we found / tweeted throughout the week.


Continue reading

Building a Python Tips API with Django REST Framework and Deploying it to Digital Ocean

Posted by Bob on Tue 05 March 2019 in Django • Tagged with Django, APIs, Django REST Framework, tips, Digital Ocean, Django Commands, Postman, Nginx, postgres, Gunicorn, BeautifulSoup, requests, curl, SSH, Linux, deployment • 15 min read

In this article I will show you how to build a simple API for our growing collection of Python tips. First we make a simple Django app, defining the model. Next we use Django REST Framework to make an API supporting common CRUD operations. Then we will test it out using curl, Postman and Django REST's browser front-end. Lastly we deploy the API to Digital Ocean so we can start using it via our Slack with a Slash Command, which I will cover in the next article. Sounds exciting? You bet it is! Let's jump straight in!


Continue reading

PyBites Twitter Digest - Issue 03, 2019

Posted by PyBites on Sun 03 March 2019 in Digest • Tagged with twitter, news, pybites, emacs, scraping, security, LEDs, hardware, lazynlp, facial detection, Cython, PSF, OpenCV, Computer Vision, deep learning, Pandas, SQLAlchemy, regex, mypy, mutmut • 2 min read

Every weekend we share a curated list of 15 cool things (mostly Python) that we found / tweeted throughout the week.


Continue reading

Generating Beautiful Code Snippets with Carbon and Selenium

Posted by Bob on Tue 26 February 2019 in Tools • Tagged with Selenium, BeautifulSoup, requests, collections, random, urllib, carbon, tips, pprint, automation • 7 min read

Did you notice our Python tips lately? They looks more sexy, don't they? That's thanks to Carbon which lets you create beautiful images of your source code. As much as I love its interface though, what if we can automate this process generating the image for us? That's what we did and posting new tips to Twitter is now a breeze. In this article I will show you how using a bit of BeautifulSoup and selenium. Enjoy!


Continue reading

PyBites Twitter Digest - Issue 02, 2019

Posted by PyBites on Sun 24 February 2019 in Digest • Tagged with twitter, news, pybites, editors, Keras, deep learning, PyCharm, adafruit, digi-key, PSF, React, AI, machine learning, pypass, Git, PyCascades, VS Code, Selenium, Heroku, 3.8, unittest, Flask • 2 min read

Every weekend we share a curated list of 15 cool things (mostly Python) that we found / tweeted throughout the week.


Continue reading

Code Challenge 61 - Build a URL Shortener

Posted by PyBites on Thu 21 February 2019 in Challenge • Tagged with code challenge, challenges, Flask, mentoring, code review, PR, github • 3 min read

Hey Pythonistas, in this challenge you will build an URL shortener. Enjoy!


Continue reading

How to Parse Hidden HTML With Selenium Headless Mode and Deploy it to Heroku

Posted by Bob on Tue 19 February 2019 in Tools • Tagged with Selenium, headless, Heroku, tweepy, argparse, Slack, Packt, books, automation, parsing, BeautifulSoup, requests, namedtuple, Scheduler, git, buildpacks, environment variables • 6 min read

Ever wondered how you scrape hidden (or JS generated) HTML? Selenium is your friend. Ever wondered how to run it without a browser popping up? Use headless mode. How would you run it remotely? Use Heroku. And how about autoposting to Slack and Twitter? With the right libraries and API setup little code is needed. In this 10 step guide I will show you how to build a Packt Free Learning Notifier which will accomplish all these tasks. Ready to learn some nice automation skills in Python?


Continue reading

PyBites Twitter Digest - Issue 01, 2019

Posted by PyBites on Sun 17 February 2019 in Digest • Tagged with twitter, news, pybites, tips, Survey, Talk Python, Bites of Py, Test & Code, PyCon, virtualenv, super, OOP, packaging, Walrus Operator, turtle, data science, podcast, Teachingpython, Jupyter, Anaconda, carbon, PythonValentine, perfplot, Dropbox, classes, Vim, Hacktoberfest, sleep • 3 min read

It has been too long 😞 but we're excited to bring you today: 🐍 PyBites Twitter Digest - Issue 01, 2019 😎


Continue reading

Code Challenge 60 - Working With PDF Files in Python

Posted by PyBites on Tue 08 January 2019 in Challenge • Tagged with code challenge, challenges, PDF, text parsing, data mining, data cleaning, PyPDF2, pdftables, PDFMiner, PyPI • 3 min read

Hey Pythonistas, in this challenge you will learn how to work with PDF documents. Enjoy!


Continue reading