Its no secret- Google Forms is one of the most popular sites for making surveys, sign-up lists, contact forms and the like. The forms can be custom designed and data is stored and formatted quite nicely. But what you may not know – is that with a little bit of Selenium and nonsense data- your… Continue reading Python Musings #4: Why you shouldn’t use Google Forms for getting Data- Simulating Spam Attacks with Selenium
Tag: Python
Python Musings #3: Geocoding data with Selenium and Google Maps
How to create a robust solution for getting properly formatted addresses and geo-codes from Google maps using selenium and some Regular expressions in Python.
RvsPython #4: A Basic Search on Amazon.ca using R and Python
This post was inspired by one of Thomas Neitmann’s posts showing how to write some debugging code in R and Python to automatically search code errors on StackOverflow. Below is a simpler example where we do this with Amazon’s site. In this blog we are going to write code that is as similar as possible… Continue reading RvsPython #4: A Basic Search on Amazon.ca using R and Python
Go from “ZERO to HERO” Learning Python with these Free Resources! [Part 1] (Python Musings #2)
Over the past couple of years I have dabbled with using Python. As someone who learned how to code with R being my first language, I didn’t see the reason to switch to Python. While it is a known powerful, flexible and easy to learn language whenever I tried to pick it up- it didn’t… Continue reading Go from “ZERO to HERO” Learning Python with these Free Resources! [Part 1] (Python Musings #2)
IDE Tricks #1: Multiple Cursors in PyCharm
I saw this trick while learning about Unit Testing in Python to help speed up editing code which is copy-pasted, but needs some slight changes when using PyCharm 1. Click on where you want your cursor to be first.2. Hold the “Alt” Key3. While holding the Alt Key, click where else you want the cursor.4. Enjoy Editing! Hope… Continue reading IDE Tricks #1: Multiple Cursors in PyCharm
RvsPython #3: Setting up Selenium (Limitations with the RSelenium package; getting past them)
Selenium is a powerful library available for both Python and R (the R version is called RSelenium) which can automate tasks such as form filling, job applications, CRM system administration and many other tasks. That being said Selenium can be used as well to do a lot of harm such as filling up forms with… Continue reading RvsPython #3: Setting up Selenium (Limitations with the RSelenium package; getting past them)
RvsPython #2: Pivoting Data From Long to Wide Form
Note: This is an older post originally written as a LinkedIn article I wrote in late May. I have added information about shaping data thanks to Casper Crause using the data.table library. You can see our original correspondence in the comments there (for now) If you dabble in data, you know one of the challenges… Continue reading RvsPython #2: Pivoting Data From Long to Wide Form
RvsPython #1: Webscraping
Webscraping is a powerful tool available for efficent data collection. There are ways to do it in both R and Python.I’ve built the same scraper in R and Python which gathers information about all the whitehouse breifings available on http://www.whitehouse.gov (don’t worry guys–it’s legal); This is based off of what I learned from FreeCodeCamp about… Continue reading RvsPython #1: Webscraping
Python Musings #1: Reading raw input from Hackkerank Challenges
As some of you may or may not know, Hackkerank is a website that offers a variety practice questions to work on your coding skills in an interactive online environment. You can work on a variety of languages like, Java, C, C++, Python and more! There are a lot of high quality questions that can… Continue reading Python Musings #1: Reading raw input from Hackkerank Challenges