A Simple Blog Post Tweeter

I continue on my journey to rebuild this blog’s traffic. One idea I had was to build a simple Python based blog post tweeter. I would select a blog post at random and then tweet it to my @neuralmarket Twitter account. I chose Python because of the Twython package. It made for a simple connection to my Twitter account and was easy to parse a text file.

The idea was this. I create a text file of all the blog posts I want to retweet – appended with a bit.ly link – and write a catchy tweet. I would then run the Python script to select at random a pre-written tweet from the text file. When I’m ready, I can cron job this script and run it once or twice a day. Over time I can add or delete pre-written tweets or try to optimize them for SEO.

I suggest that all my readers try this, it’s not hard and is simple to follow.

The Twitter Token

First you have to get a Twitter token. This allows you the Python script to post on your behalf and there are four bits of information you need. First visit dev.twitter.com and navigate to the application owner access token page. There you can learn on how to make a single application and generate the follow api values:

  1. Consumer Key
  2. Consumer Secret
  3. Access Token
  4. Access Token Secret

You’ll need these four items for the Python script below.

The text file

Next, create a simple text file (TXT extension) and put a single tweet per line. Make sure to add your blog post link. I use bit.ly to shorten my long URLs.

Here’s an example of my text file:

Make sure to save this file in the same directory as your Python script. I keep all my scripts and files in a Dropbox folder so I can access it anywhere.

The Code

Now here’s the code. I’m going to XXX out my consumer and access keys, you’ll have to add your own from the first step above.

It’s as simple as that. Just remember you need to install the Twython package and I wrote this script in Python v2.7. Any questions, just drop me a comment.

Source: Blot NMT Feed

Rebuilding a Blog – Part 2

This is my second post in rebuiling a blog series. This time I check out where my readers are coming from. It’s not suprising that my readers come from all over the world. The map below are where they came from in the first half of 2016. The majority of them came from the USA, followed by Europe, and then Asia. This does not come as a surprise and makes complete sense because the users were searching for RapidMiner Tutorials.

Neural Market Trends Reader LocationsNeural Market Trends Reader Locations

As a continuation to my previous post, I’m still sleuthing through my Google Analytics data trying to understand what is happening and why. Mostly I want to figure out a strategy so I can succeed in my roll of film quest” but if yesterday’s post was an indicator, my quest is off to a rough start!

Mobile Traffic

I got curious as I dug through my Google Analytics data. How are my readers interacting with my site? Is it mobile or is it desktop. Once again, the results aren’t surprising. 11.88% visit my site from mobile devices but the overwhelming majority (88.12%) is a desktop or tablet.

Neural Market Trends Mobile User MapNeural Market Trends Mobile User Map

Neural Market Trends Mobile SessionsNeural Market Trends Mobile Sessions

Smartphones are becoming ubiquitous and if my kids and nephews are an indicator, the desktop will go away one day. With technologies like AirDrop and Chromecast, do we really need a desktop to consume content? In the future, probably not. I think that mobile friendly blogging is a must in the near future here so this as part of my blog rebuilding, I will focus on making this site more pro-mobile.”

New vs Returning Readers

The following chart is truly interesting. The rate of returning mobile users is the same as the rate of returning desktop/tablet users.

Neural Market Trends New vs Returning Users with Mobile Pie ChartNeural Market Trends New vs Returning Users with Mobile Pie Chart