Markov Chain Twitter Bot

First, the bot can be seen in the wild here: https://twitter.com/bern_trump_bot

This is my first attempt to write a twitter bot that stands on its own. In addition to learning more about Python and Server management, I saw an opportunity to learn about Artificial Intelligence. The bot ...

Read more...

Scraping JavaScript pages with Python: Selenium, Requests, and Beautiful Soup

Note: Imgur has an API. Please use the API if you intend to gather images from Imgur.

This post is a short demonstration of scraping JavaScript webpages that are not possible to scrape with Beautiful Soup or Requests by themselves.  While imgur has an API, the thought occurred that perhaps ...

Read more...

Anaconda Primer

This was taken from [Dave Behnke] (http://davebehnke.com/using-python-anaconda-distribution.html) which is no longer active. I used the way back machine to find it and reproduce it.

Introduction

As a followup to my article about pyenv, I decided it was worth also taking a look at Anaconda/Miniconda an ...

Read more...

Basic Alembic Migrations with Flask

This post will cover the minimal set-up to get basic (auto-generating) Alembic migrations working within a Flask application. The pre-requisites are;
Flask, SQLAlchemy, Flask-SQLAlchemy and Alembic in case that wasn't obvious.

My current project is being built with Flask utilizing SQLalchemy as an abstraction to
my data persistence layer ...

Read more...

Python Twitter Tools

In the first episode of playing with twitter, I demo'ed
Tweepy. In this episode, I will use the
twitter library from Mike
Verdone
.

  • install the library: pip install twitter

In the README and other sources of documentation, the config for the user/app
credentials are accessed via os.path ...

Read more...