Click here to code!

Automating PyBites Review Post Using Github API and collections.defaultdict

Posted by Bob on Tue 13 November 2018 in Data • Tagged with collections, defaultdict, re, regular expressions, requests, challenges, review post, parsing, string manipulation, github, API • 4 min read

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.


Continue reading

Data Analysis of Pybites Community Branch Activity

Posted by Martin Uribe on Thu 18 October 2018 in Data • Tagged with data analysis, community, matplotlib, seaborn, dateutil, pathlib, collections, json, code challenges, numpy, pandas, requests • 15 min read

I wanted to play around with a dataset and see what I could find out about it. I decided on analyzing the little bit of data that I could collect from Github without having to use an OAuth key, which limits it to just 300 events. If you want to follow along with my notebook check out the instructions here. This notebook was my submission for Code Challenge 47 - PyBites First Year in Data (Special).


Continue reading

Fully Automate Login and Banner Generation with Selenium, Requests and Click

Posted by Bob on Sun 20 August 2017 in Modules • Tagged with Selenium, Requests, selenium-requests, Click, Pillow, automation, scraping, tools, PyBites Banner Generator, images • 3 min read

In part 3 of the PyBites Banner Generator article series I show you how to automatically generate a banner with Requests and Selenium.


Continue reading

Code Challenge 25 - Notification Service of Now Playing and Upcoming Movies - Review

Posted by PyBites on Mon 03 July 2017 in Challenges • Tagged with codechallenges, movies, series, digest, email, themoviedb, apis, argparse, requests, mailgun • 2 min read

In this article we review last week's Notification Service of Now Playing and Upcoming Movies code challenge.


Continue reading

Using Python Requests on a Page Behind a Login

Posted by Julian on Fri 09 June 2017 in Modules • Tagged with requests, code, web scraping, python • 4 min read

In this post I discuss using the requests module on web pages behind a login


Continue reading

Learning Python by Building a Wisdom Quotes App

Posted by Dante Septem on Tue 09 May 2017 in Learning • Tagged with challenges, learning, guest, wikipedia, API, code review, flask, requests, quotes, forismatic • 2 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

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

Best Practices for Compatible Python 2 and 3 Code

Posted by Bob on Wed 22 March 2017 in Tools • Tagged with 2vs3, tox, six, python-modernize, porting, future, 2to3, coverage, futurize, caniusepython3, pip, Requests, Werkzeug • 3 min read

95% of most popular Python packages support Python 3. Maybe you are lucky and get to start fresh using Python 3. However as of last year Python 2.7 still reigns supreme in pip installs and at a lot of places 2.x is the only version you get to work in. I think writing Python 2 and 3 compatible code is an important skill, so lets check what it entails.


Continue reading

PyBites Module of the Week - Requests-cache for Repeated API Calls

Posted by Bob on Tue 14 March 2017 in Modules • Tagged with requests, cache, APIs, package • 2 min read

Today a quick article on a nice caching module when working with APIs: Requests-cache.


Continue reading