Parsing Twitter Geo Data and Mocking API Calls by Example

Posted by Bob on Sat 17 June 2017 in Learning • Tagged with twitter, API, mock, geo, data, unittest, pickle, tweepy, testing, 100days • 2 min read

"Is this Bob or Julian?!" ... yeah tweeting from our shared @pybites Twitter account can be confusing! So I made a little script to parse the location of our tweets. Then I extended it to make it testable. I wrote a decorator to cache a couple of API outputs to be used with the unittest.mock patch decorator I learned about. A simple script turned into a good learning exercise.


Continue reading

How to Write a Python Subclass

Posted by Julian on Sat 17 June 2017 in Learning • Tagged with learning, code, programming, python, classes, beginners • 5 min read

In this article I cover Python subclasses and inheritance using a relatable code example scenario.


Continue reading

How to Write a Python Class

Posted by Julian on Thu 25 May 2017 in Learning • Tagged with learning, code, programming, python, classes, beginners • 4 min read

In this post I cover learning Python classes by walking through one of our 100 days of code submissions.


Continue reading

How to Create Your Own Steam Game Release Notifier

Posted by Julian on Fri 19 May 2017 in Learning • Tagged with learning, code, programming, python, sqlite3, xml, email, automation, tools, feedparser, game • 6 min read

In this post we demonstrate ways in which you can parse common data formats used in Python.


Continue reading

How to Parse Common Data Formats in Python

Posted by PyBites on Tue 16 May 2017 in Learning • Tagged with learning, code, programming, python, resources, csv, sqlite3, json, xml • 3 min read

In this post we demonstrate ways in which you can parse common data formats used in Python.


Continue reading

Learning Python by Building a Wisdom Quotes App

Posted by Dante on Tue 09 May 2017 in Learning • Tagged with challenges, learning, guest, wikipedia, API, code review, flask, requests, quotes, forismatic • 3 min read

In this guest post Dante tells us about his Wisdom of the Ages app he built for PyBites code challenge 16 (reviewed here). The best way to learn Python is to build something and we are proud of our community achieving just that.


Continue reading

How to Download an XML File with Python

Posted by Julian on Thu 04 May 2017 in Learning • Tagged with tutorial, learning, webscraping, requests, xml, beginners, python • 4 min read

In this post I detail how to download an xml file to your OS and why it’s not as simple as you’d think


Continue reading

The making of my Task Manager App for the PyBites Code Challenge

Posted by Martin on Tue 02 May 2017 in Learning • Tagged with blog, challenges, Flask, Bootstrap, HTML, CSS, Jinja2, Flask-SQLAlchemy, sql • 5 min read

As a relatively newcomer to the Python scene I've come to realize that the best way to learn is to actually participate in coding challenges. This has helped to push me out of my comfort zone.


Continue reading

Learn Python by Coding for Yourself

Posted by Julian on Thu 27 April 2017 in Learning • Tagged with learning, code, programming, python, resources, Flask, Warcraft, requests, gmail, APIs, sqlite3, challenge, motivation • 6 min read

In this post I discuss (with examples) why it’s important to learn Python by actually coding. It’s not enough to just read!


Continue reading

Comparing Lists with Difflib

Posted by Julian on Wed 08 March 2017 in Learning • Tagged with python, learning, beginners, stdlib, tips, cleancode, bestpractices, pythonic • 3 min read

Learn to compare blocks of text with the difflib module.


Continue reading