サクサク読めて、アプリ限定の機能も多数!
トップへ戻る
パリ五輪
ruby.bastardsbook.com
In the previous chapter, we saw how to use the web inspector to intercept raw data files. This allows us to read from them directly rather than deal with the data in HTML format. But there will be many instances when you'll need to parse raw HTML. The Ruby gem Nokogiri makes reading raw HTML as easy as crack-parsed XML and JSON. The Nokogiri gem is a fantastic library that serves virtually all of
In the previous chapters on web-scraping, we saw how scraping data from webpages doesn't require a deep knowledge of HTML. The browser's web inspector provides a point-and-click interface to see where page elements are described in the raw HTML and to examine the raw data going in and out of your browser. If the raw data isn't already in spreadsheet-ready form, the Nokogiri gem makes it especially
A Programming Primer for Counting and Other Unconventional Tasks Note: As of 2015, consider the Bastards Book to be in maintenance mode. I currently work at Stanford's Computational Journalism Lab and am slowly working on an overhaul, but it may be awhile. The concepts in this book are evergreen, but the version of Ruby is most definitely not, so follow it with some caution. The Bastards Book of R
A random sampling of the mugshots collected from the Putnam County Sheriff's jail history. I wrote an RMagick script to auto-crop and combine the photos. In the book's introduction, I described how I wrote a scraper for the local county jail's website so I could analyze the characteristics of the inmate population, including types of crime committed. But I recently checked and saw that the sheriff
このページを最初にブックマークしてみませんか?
『The Bastards Book of Ruby』の新着エントリーを見る
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く