Twitter digest 2017 week 24

Posted by PyBites on Sun 18 June 2017 in Digest • Tagged with twitter, news, tips, python, Postgres, JSON, Rest, API, Strings, Docker, Flask, React, AWS, learning, Py, Instagram, data science, charts, NASA, Faker, GitHub, Readme, indentation, data analysis, twilio • 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

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

Code Challenge 19 - Post to Your Favorite API - Review

Posted by PyBites on Mon 22 May 2017 in Challenges • Tagged with codechallenges, learning, API, POST, Twitter, Facebook • 2 min read

This week was pretty busy due to PyCon, but what an amazing conference! A lot to absorb which we will digest in the upcoming articles. First our regular schedule though: review of last week's challenge: post to your favorite API.


Continue reading

Code Challenge 19 - Post to Your Favorite API

Posted by PyBites on Mon 15 May 2017 in Challenges • Tagged with codechallenges, learning, API, Twitter, Facebook, TheMovieDB, Spotify, Goodreads, Reddit, Google, POST • 2 min read

Hi Pythonistas, a new week, a new 'bite' of Python coding! This week part 2 of APIs: post to your favorite API. Enjoy


Continue reading

Code Challenge 18 - Get Recommendations - Review

Posted by PyBites on Mon 15 May 2017 in Challenges • Tagged with codechallenges, books, Goodreads, API, oauth, Manning, Machine Learning, Netflix, recommendation engine, Parrotread, recommender system • 2 min read

Before moving onto the new challenge let's review last week's challenge. It's never late to sign up, just fork our challenges repo and start coding.


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

Code Challenge 18 - Get Recommendations

Posted by PyBites on Mon 08 May 2017 in Challenges • Tagged with codechallenges, learning, Twitter, books, recommendations, API, TextBlob • 2 min read

Hi Pythonistas, a new week, a new 'bite' of Python coding! This week we'll do another API exercise: you will parse your Twitter feed searching for book / movie / music / you-name-it recommendations. Can you create a simple ParrotRead? Enjoy


Continue reading

Simple Flask app to compare the weather of 2 cities

Posted by Bob on Thu 20 April 2017 in Flask • Tagged with Flask, weather, API, OpenWeatherMap, learning, Heroku, pytz, deploy, Jinja, CSS • 3 min read

In this post I show you how to build a simple Flask app to compare the weather of 2 cities using the OpenWeatherMap API. Maybe this aids you in solving this week's challenge.


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