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!

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

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

My Anaconda Workflow: Python environment and package management made easy

Posted by Martin Uribe on Tue 24 July 2018 in Tools • Tagged with Anaconda, Anaconda workflow, conda, pip, virtual environment, packages, packaging, distribution, configuration, YAML, python3.7 • 12 min read

in this article martin provides an easy-to-follow reference guide of his anaconda workflow. he uses this to make his life easier managing the his python environment and package dependencies. and to great avail as you will soon discover. not only will you learn the basics of the powerful conda tool, he also goes into more depth on the more niche/advanced features like using alternate channels, distributing and cloning environments, updating anaconda, and setting environment variables. warning: this might get you on anaconda, and if you are already you probably want to keep this one nearby for reference.


Continue reading

Pushing the Packt "free book of the day" to the world with Scrapy and Alexa

Posted by Rhys Powell on Thu 31 May 2018 in Tools • Tagged with guest, Alexa, Scrapy, web scraping, Packt, books • 6 min read

I have a love of the goodies that you get as part of the developer rewards from submitting Alexa skills to Amazon. Another thing that I also love is the fact that Packt gives away a free book. What I always forget to do is look at what today’s book is and what I didn’t have was a lot of time to meet this month's deadline for app submission. Why not combine them both?


Continue reading

DisAtBot - How I Built a Chatbot With Telegram And Python

Posted by Rodolfo Ferro on Sun 10 December 2017 in Tools • Tagged with bots, code challenge, guest, DisAtBot, chatbots, opensource, Telegram, Mexico • 6 min read

Rodolfo recently joined our Code Challenges and built Disaster Attention Bot (DisAtBot), a chatbot that helps people affected by natural disasters. In this article he shows how he built this bot with Telegram and (of course) Python. Show him some love because who knows, this could be a life saver (pun intended)! We are delighted to have him show this interesting project he submitted for Code Challenge 43 which earned him a book on chatbots. /Rod please share ...


Continue reading

Bootstrap Your Next Python Project With Cookiecutter

Posted by Bob on Wed 25 October 2017 in Tools • Tagged with Cookiecutter, setup, testing, packages, modules, Bottle • 3 min read

I finally did it! I bootstrapped my first project with Cookiecutter. There is a lot to discover but wow this tool can save you a ton of time, making your project more professional.


Continue reading

Hiding BCC Recipients in Python MIME Emails

Posted by Julian on Wed 06 September 2017 in Tools • Tagged with python, tips, tricks, code, pybites, email, automation, MIME, bcc • 2 min read

How to actually hide the BCC recipients when sending an email with Python MIME.


Continue reading

Improve the Quality of Your Code with Better Code Hub

Posted by Bob on Wed 30 August 2017 in Tools • Tagged with bettercodehub, SIG, refactoring, code quality, clean code, software development, tools, platform • 5 min read

So you pushed your code to GitHub and deployed v1, congrats! But how maintainable is your code really? Do you have tests? Is your code modular? Are your methods short and concise? What if you could hit a button and a tool conveniently checks this for you? Free and integrated with GitHub? Enter Better Code Hub from Software Improvement Group ...


Continue reading

Making a Banner Generator With Pillow and Flask

Posted by Bob on Sat 19 August 2017 in Tools • Tagged with Pillow, Flask, Heroku, Flask-WTF, Flask-SQLAlchemy, challenges, PyBites Banner Generator, images • 4 min read

In this article I will take last week's banner.py Pillow script and integrate it into a Flask app.


Continue reading

Building a Karma Bot with Python and the Slack API

Posted by Bob on Sun 25 June 2017 in Tools • Tagged with Slack, karma, bot, API, picle, packaging, logging, Counter • 3 min read

We love Slack! But what if we can make it even cooler? Imagine: you are geeking out with your fellow developers on Slack and you want to give them credit. Or you can write "stupidsubject--" and it automagically shows "stupidsubject's karma decreased to -2". Enter Karma Bot. This is nothing new but building one myself was a great learning exercise and a fun tool we use on our Slack now.


Continue reading