I was asked to help parse a JSON file that is delivered by the iTunes Store Customer Reviews API JSON endpoint. It is not so important how this API works or if there are better APIs for this. Instead, let’s assume that we found our favorite API to work with and that our request makes… Continue reading Case study: How to parse nested JSON
Articles on parsing
How to Parse Hidden HTML With Selenium Headless Mode and Deploy it to Heroku
By Bob Belderbos on 19 February 2019
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?
Automating PyBites Review Post Using Github API and collections.defaultdict
By Bob Belderbos on 13 November 2018
In this post I share a quick script I produced last week to automate a portion of our review post. There are some nice idioms that you might find useful.
Code Challenge 49 – Contribute to Open Source: Clean up Planet Python
By PyBites Team on 1 April 2018
Hi Pythonistas, it has been silent on the Community Blog challenges front, but then again we completed the 100 Days of Code in Python course which was a great milestone. Although less frequent, we will keep doing blog challenges though, not to worry! Let’s start with a long pending item: cleaning up Python planets feeds, an interesting and valuable open source contribution.
Code Challenge 42 – Mastering Regular Expressions
By PyBites Team on 3 November 2017
Hi Pythonistas, it’s beginning of the month so we’re busy selecting some cool code challenges for you to work on to hone your Python skills. Regular Expressions was a long time coming so let’s get it out there. We hope we hit a decent intermediate level with this challenge. If you have questions ask us in the comments or join our Slack.
Next Time I Will Use Pandas to Parse Html Tables
By Bob Belderbos on 8 June 2017
Last week I did some html table parsing with BeautifulSoup and regex. It turns out there is an easier way to do this: Pandas.
10 Tips to Get More out of Your Regexes
By Bob Belderbos on 15 March 2017
Regular expressions can be arcane, yet when used with care they can also be very powerful. In this post a couple of tips to get more out of your regexes when using Python’s re module.