Blog Posts

a collection of all sorts of writings

Featured image for Collecting & Analysing Google Home Reviews with Python

Collecting & Analysing Google Home Reviews with Python

28 Nov 2018

Product reviews online are the best source for knowing and understanding a product before making a purchase decision. With the ample amount of reviews available online, we'll use Python to quickly understand the gist of the review, analyse the sentiment and stance of the reviews, and basically automate the boring ...

Featured image for Scraping Search Results from Google Search

Scraping Search Results from Google Search

21 Nov 2018

Scraping search results from Google Search can be used for many things. It can be used for sentiment analysis, competitor analysis and search engine optimisation (SEO). In this post, I'll cover how to scrape Google search results for a start. Setting Up the Scope Firstly, we'll set up some parameters ...

Featured image for Quick Guide - Google Cloud Authentication on Python

Quick Guide - Google Cloud Authentication on Python

14 Nov 2018

Authentication for Google Cloud APIs on Python can be a bit challenging and can discourage those who're keen to use their amazing APIs such as the Natural Language Processing APIs. Recently I had some issues too and found a simple way to do it. Plus, I think Google Cloud has ...

Featured image for Using YouTube API to Analyse YouTube Comments on Python

Using YouTube API to Analyse YouTube Comments on Python

05 Nov 2018

YouTube comments are often fun to read while its anonymity also helps to provide some deep insight into some issues from both ends of the argument/discussion. It does house some of the funniest comments you'll find online too. YouTube API is a free-to-use API for anyone who's keen to capture ...

Featured image for Error Handling in Selenium on Python

Error Handling in Selenium on Python

14 Oct 2018

Selenium is a very versatile web scraping tool that is accessible via multiple programming languages. It's distinguished from text-parsing scrapers like BeautifulSoup as it actually simulates a web navigation experience, enabling you to scrape website running on a lot of Javascript and iframes. That makes Selenium especially powerful when you ...

Featured image for Auto Increase AdWords Daily Budget

Auto Increase AdWords Daily Budget

07 May 2018

AdWords daily budget is a safety measure implemented to ensure that you don't overspend your budget and ensure that your budget pacing is done well for the month, quarter or year. However, sometimes you'll have campaigns that you would like to fully fund, such as your brand keywords. Your competitors ...

Featured image for Importing Your Own Python Module or Python File in Colaboratory

Importing Your Own Python Module or Python File in Colaboratory

30 Apr 2018

It's a good practice to keep your code modular to enhance its value and applicability to a wider range of use cases. It also helps to make your Python script shorter, reduces clutter and easier to understand. Readers of your code only need to know the purpose of you calling the ...

Featured image for Make Your Colaboratory Code Easier to Use with Form Input

Make Your Colaboratory Code Easier to Use with Form Input

23 Apr 2018

I find the forms function on Colaboratory extremely useful when you're sharing your Colaboratory notebook for a wider audience. Some users might not really understand Python to edit the variables for their use cases safely. Hence, the forms function provides a dialogue-box interface to enable editing of variables via an ...

Featured image for Intro to Colaboratory and Linking it to Google Sheets

Intro to Colaboratory and Linking it to Google Sheets

16 Apr 2018

Colaboratory is an amazing new tool built by Google that is a Jupyter notebook running on Python 2 or Python 3 ran entirely on the Cloud. The main advantages I find to using Colaboratory are: Very easy to share your code: Just share it like any Google Drive files It's fast: I've ...

Featured image for Scheduling a Python Script to Run Upon Boot at a Predefined Time (Windows)

Scheduling a Python Script to Run Upon Boot at a Predefined Time (Windows)

09 Apr 2018

Running a Python script on a schedule can be useful, either for scheduled data mining or updating of a dashboard on Google Sheets. There are cloud solutions out there, but there's a simple GUI version of a scheduler for scripts on Windows that can be used. The programme is included ...