This week we welcome Ryan Mitchell (@Kludgist) as our PyDev of the Week. Ryan is the author of Web Scraping with Python and Instant Web Scraping with Java. Let’s spend some time getting to know Ryan better.
Can you tell us a little about yourself (hobbies, education, etc):
Iâ€™m a graduate of Olin College of Engineering, getting my masterâ€™s in software engineering from Harvard School of Extension Studies next year (Iâ€™ve been working on it half time for the past three years). With a bachelorâ€™s degree in â€œgeneral engineering,â€ I bounced around a bit between UX and application design, entrepreneurship, IT, bioengineering, software architecture design, and programming. I think Iâ€™ve pretty firmly settled on software engineering at this point, though! Iâ€™m currently an SE at a startup in South Boston called LinkeDrive — we get big data from long haul truck engines. Itâ€™s pretty awesome.
As far as hobbies go, Iâ€™m a volunteer at the Boston Museum of Science in the Tech Studio department, every Sunday afternoon. I love teaching, and itâ€™s a great way to get engaged in the community, while getting to see all the IMAX and planetarium shows you want! Iâ€™m also a drag queen and a member of the Sisters of Perpetual Indulgence (a non-profit organization of group of â€œdrag nunsâ€ that raise money mostly for local causes) — thatâ€™s a longer story!
Why did you start using Python?
Truthfully, it was because it was required for a college course I was taking at the time! I had internships at Sun (RIP) and Microsoft in high school, so there obviously wasnâ€™t a lot of Python exposure there. During college, I was so busy with engineering courses, I didnâ€™t have a lot of time to pick up anything that wasnâ€™t required. But once I had an opportunity to learn it, I really fell in love with the language, and it pretty quickly became my go-to for non-web projects.
What other programming languages do you know and which is your favorite?
I try not to play favorites with languages, but I mostly do Java for my day job, and Iâ€™m a fan of that language. If Iâ€™m working with a machine learning project that involves a lot of math, Iâ€™ll probably use Python. If thereâ€™s a lot of complex business logic, Iâ€™ll probably use Java, but thatâ€™s mostly a bias of the accepted conventions and popular libraries for each language, than a fundamental property of the languages themselves.
What projects are you working on now?
Lots of web scraping to promote and support the book, getting ideas for a second edition, writing blog posts, putting together a video series for Oâ€™Reilly (filming in October, will probably be released shortly afterwards), in addition to my day job, of course.
Iâ€™m also working on a super secret project on the side, that I likely wonâ€™t release until next DEF CON (or earlier, if the talk isnâ€™t accepted, but fingers crossed!)
Which Python libraries are your favorite (core or 3rd party)?
Favorite core library: urllib — I write web scrapers, so I have to say that!
3rd party: BeautifulSoup is an obvious choice here. I know it has a lot of competition with all the HTML parsers out there, and of course, Pythonâ€™s core HTMLParser, but Iâ€™ve found BeautifulSoup extremely fast, lightweight, flexible, and easy to use compared some of the other libraries. Definitely my go-to for HTML parsing.
Iâ€™ve been in love with the Python Imaging Library lately — I use it a lot to automate captcha solving and even do random batch imaging processing tasks (resizing a folder of images, for example) that would be a pain to do by hand.
Of course, thereâ€™s also SciPy, NumPy, and NLTK. My only complaint there is that I donâ€™t know nearly enough machine learning to use those to their fullest extent, however theyâ€™re surprisingly easy to get up and running with even if you have a relatively trivial task to do with them, so Iâ€™d really recommend checking one or all of them out, if you havenâ€™t yet! I have a pretty hardcore machine learning class I signed up for starting in September though, so Iâ€™m pretty excited about that, and getting to know these libraries a little better.
What made you decide to write a book about Python?
Well, the bookâ€™s not really about Python, itâ€™s about web scraping! I actually wrote a smaller book, with Packt Publishing, a couple years ago — Instant Web Scraping with Java. Web scraping is a subject I love a lot, and that I love teaching. Packt was the one who suggested that I write the book in Java. At that time, I hadnâ€™t used Java in a few years, so that language certainly wouldnâ€™t have been my first choice. I was writing web scrapers in Python at the time for work, so, honestly, there was a lot of research that I needed to do for that.
I approached Oâ€™Reilly last year about writing a lengthier web scraping book, and basically told them I could write it in either Python or Java. They, of course, said Python — ironically, I had now switched jobs so that I was writing Java during the day. Iâ€™ve never written a book in the same language that Iâ€™ve been doing for my day job at the time, which makes it really confusing when youâ€™re deciding whether or not you want to add a semicolon at the end of the line!
Is there anything else youâ€™d like to say?
Iâ€™m honored to be PyDev of the week! Anyone can feel free to reach out to me @kludgist. I love having Twitter discussions about Python and web scraping. Also, I have a fledgling blog going at http://pythonscraping.com/blog where I write about random web scraping/Python thoughts, and welcome feedback for the Web Scraping with Python second edition! Thanks!
The Last 10 PyDevs of the Week
2 thoughts on “PyDev of the Week: Ryan Mitchell”
Pingback: PyDev of the Week: Jaime Fernandez del Rio< - Mouse Vs Python
Pingback: PyDev of the Week: Nick Coghlan - Mouse Vs Python
Comments are closed.