How To Detect When A Webpage Changes With Python python If you've ever been waiting for a webpage to update then you know how time consuming it can be to constantly have to refresh the page. I had a similar
Ghost Tweeter python This post on the Ghost forums ask for a way to automatically, and periodically tweet links to blog posts that are X days old. So, I made one. GhostTweeter, is written in Python and uses tweepy and feedparser to cycle through a Ghost blog's
Python IRC Bot python I wrote (more of borrowed and molded) an IRC bot in high school and it is a giant piece of crap in terms of code. So recently I condensed it down and decided to redo it all. Here's all of the code, I'll break
A Web Scraper That Sucks Even Less! python I recently wrote a post about using BeautifulSoup and urllib2 to scrape html off webpages and parse it into useful text. The only issue was it was easy to get banned with. This modification to the code does not make you ban proof, and
Python Array Inside An Array python I'm not sure if this is common knowledge or not but you can store data in Python with as many arrays inside other arrays as you want. test = [[1, 2, 3], [4, 5, 6], [7, 8, [9, 10]]] print test[2][2][0] >
A Web Scraper That Doesn't (Completly) Suck python Python is great for a lot of things. Here's another, web scraping. Web scraping is the act of programmatically grabbing information from webpages. Typically from the HTML returned by a website. NOTE: Web scraping can be abused and in many cases will get you
Python Split and List python Split One of the most useful string operations in Python is split. If we wanted to split "Free as in Freedom" into an array of words we would do. array = "Free as in Freedom".split(" ") We can pass
Control a Servo over the Internet python Discontinued Note: If you are using Chrome and cannot see a live image here, hard refresh (shift plus refresh). Consider switching to Firefox if you're still having issues, Chrome has limited support of MJPEG. Command: set [0-180]. (Example: set 20) Details The servo is
Python Speed Testing python Python has an awesome feature called timeit that allows you to test how long a snippet of code took to run. In this example were going to test another cool feature of Python, negative indexing. Negative indexing allows us to get an array value
How To: Control Arduino's Serial Monitor with Python python Arduino is an electronics platforming tool that is as fun as it is easy to get into. That doesn't mean it's weak either. Arduino + Python Arduino is amazing by itself but the entry level board, the Arduino Uno (pictured above, ~35$) has some limitations.
Raspberry Pi, Python Servo Control python The following python code, along with Adafruit PWM and Servo Kernel allows you to control a servo with the following syntax: python servo.py [degree] [degree] [degree]... Example rotation to 180 and back to 0 twice: python servo.py 0 180 0 180 0