Machine learning is one of the most common buzzwords thrown around the world of digital marketing today. For all of the powerful and amazing capabilities this data science function possess, it grinds my gears just having to use it in this post. I want to attempt to demystify this played out phrase, by showing that anyone […]

Tag: Python
When I first started working at PMG I was immediately given the task of writing a piece of software that allowed us to upload Facebook audience data via a command-line tool. The issue? Facebook’s login uses OAuth2 authentication in order for you to access their APIs. This requires a server to handle redirect URLs which contain tokens needed to login and a web browser to accept the permissions. Both of these are very limited in a command line utility that is supposed to be small and portable.
Python has a built in library for making HTTP requests. Well, it has two of them actually: urllib and urllib2. Unfortunately, both of them are not ideal. The API is thoroughly broken, and certain things are extremely hard. Enter requests a fantastic third party python library. You can install it by typing pip install requests […]
The hardest part of any SEO’s job is extracting information about a product/page from the database or that product page itself. That’s why I covered parsing HTML/XML with Python in my last article. You can get a lot of stuff from scraping a page, but sometimes that’s not enough. Sometimes you need more information that […]
During the last six months or so, I started learning more and more about coding. It all started with WordPress and quickly moved on to other things. As an SEO, one of the things I notice is how much work is sometimes involved in simple tasks like writing title or description tags for clients. As […]