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 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

Code Challenge 43 - Build a Chatbot Using Python

Posted by PyBites on Thu 09 November 2017 in Challenge • Tagged with chatbot, bots, Slack, Facebook, Twitter, monitoring, books, contest, ML, NLP, AI • 4 min read

Hi Pythonistas, it's incredible to think how quickly bots have grown in popularity. They're everywhere these days and will play an important role how we work and communicate in the near future! It's about time we go our bot on as well!


Continue reading

Twitter Digest 2017 Week 36

Posted by PyBites on Sun 10 September 2017 in Digest • Tagged with twitter, news, tips, python, Machine Learning, Data Visualisation, Git, Data Science, Books, Bots, Jupyter, Flask, REST, CLI, Pandas, Slack, Django, pinclone, Pipenv • 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 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

Code Challenge 23 - Challenge Estimated Time API

Posted by PyBites on Tue 13 June 2017 in Challenges • Tagged with codechallenges, APIs, Github, Slack, Flask, tracking, meta, data, platform • 3 min read

Hi Pythonistas, a new week, a new 'bite' of Python coding! This week we will give you the opportunity to enhance our challenge platform by creating a simple API to track how much time our challenges take (and possibly other metadata).


Continue reading

How to Write a Simple Slack Bot to Monitor Your Brand on Twitter

Posted by Bob on Tue 25 April 2017 in Tools • Tagged with Twitter, Slack, Automation, monitoring, twython, TwythonStreamer, slacker, configparser, logging, brand, triggers • 3 min read

In this article I show you how to monitor Twitter and post alerts to a Slack channel. We built a nice tool to monitor whenever our domain gets mentioned on Twitter. The slacker and twython modules made this pretty easy. We also use configparser and logging.


Continue reading

Code Challenge 16 - Query Your Favorite API

Posted by PyBites on Mon 24 April 2017 in Challenges • Tagged with codechallenges, learning, APIs, movies, music, Slack, Twitter, weather • 2 min read

Hi Pythonistas, a new week, a new 'bite' of Python coding! This week we'll let you play with Web APIs. They are fun to fiddle with and great for learning and building cool things. Enjoy!


Continue reading

Twitter digest 2017 week 14

Posted by PyBites on Sun 09 April 2017 in Digest • Tagged with twitter, news, tips, python, safari books, cheatsheet, ruby, heroku, aws, Django, slack, alexa, data science, ebook, cron, machine learning, git • 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

How to Build a Simple Slack Bot

Posted by Bob on Tue 04 April 2017 in Tools • Tagged with slack, API, bot, chatbot, deployment, shell, nohup, automation • 3 min read

I was playing with Slack's Real Time Messaging API the other day. Building a bot is pretty easy. In this article a simple example.


Continue reading

Simple API Part 2 - Building a Deep Work Logger with Flask, Slack and Google Docs

Posted by Bob on Fri 10 March 2017 in Flask • Tagged with Flask, Slack, Google docs, Heroku, APIs, pygsheets, git, commands, productivity, learning • 3 min read

After Simple API - part 1 a more practical app in this part 2 tutorial: a Deep Work logger integrating Google docs and Slack, including deployment of the app to Heroku.


Continue reading