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

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

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

How to Test Your Django App with Selenium and pytest

Posted by Bob on Thu 22 November 2018 in Testing • Tagged with django, pytest, selenium, platform, fixtures, dateutil • 8 min read

In this article I will show you how to test a Django app with pytest and Selenium. We will test our CodeChalleng.es platform comparing the logged out homepage vs the logged in dashboard. We will navigate the DOM matching elements and more. Overall you should learn enough Selenium and pytest to start testing a web page including a login. Sounds exciting? Let's dive straight in!


Continue reading

Code Challenge 53 - Query the Spotify API - Review

Posted by PyBites on Tue 09 October 2018 in Challenges • Tagged with Spotify, music, API, Bokeh, Flask, readlines, itertools, Google, difflib, visualization, data analysis, regex, Counter, web scraping, Selenium, email • 3 min read

In this article we review last week's Query the Spotify API code challenge.


Continue reading

PyBites Twitter Digest - Issue 31, 2018

Posted by PyBites on Sun 07 October 2018 in Digest • Tagged with twitter, news, pybites, Dropbox, Python 3, migration, PyQt, GUI, tutorial, podcast, testing, Selenium, Flask, data science, NumPy, Black, PEP, strings, C, YouTube, videos, PSF, survey, Pandas, AWS, Jupyter, Google Colaboratory, JSON • 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

Why Python is Great for Test Automation

Posted by Andrew Knight on Wed 25 July 2018 in Testing • Tagged with guest, test, testing, automation, tdd, selenium, pytest, IDE • 5 min read

Testing in Python is consistently growing in popularity. In this article our friend Andrew Knight from Automation Panda walks through 10 reasons why Python is great for Test Automation.


Continue reading

Twitter Digest 2018 Week 12

Posted by PyBites on Sun 25 March 2018 in Digest • Tagged with twitter, news, pybites, course, training, podcast, data visualisation, speech recognition, OpenMV, Windows, Selenium, Docker, platform_update, Flask, regex, make site, tests, joypy, pandas • 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

Twitter Digest 2018 Week 09

Posted by PyBites on Sun 25 February 2018 in Digest • Tagged with twitter, news, pybites, tools, OOP, functions, PyCon, Fitbit, slices, Twitter, bot, Flask, TensorFlow, CSV, Raspberry Pi, machine learning, deep learning, Selenium, Jupyter, redis • 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 32 - Test a Simple Django App With Selenium - Review

Posted by PyBites on Mon 21 August 2017 in Challenges • Tagged with codechallenges, Django, 100DaysOfDjango, Selenium, Testing • 1 min read

In this article we review last week's Test a Simple Django App With Selenium code challenge.


Continue reading