Skip to Content
Bad Data 技術手冊
book

Bad Data 技術手冊

by Q. Ethan McCallum
September 2013
Intermediate to advanced
264 pages
5h
Chinese
GoTop Information, Inc.
Content preview from Bad Data 技術手冊
84
|
第五章:(重新)組織網站的資料
Chickenfoot 提供一些如
click
select
以及
find
等的簡單指令,但也給你存取
JavaScript DOM 的完整權限,讓你能夠抽取資料並且完整的控制網頁。要產生 AJAX
求、變更和送出表單、以及更多的事情等都是非常簡單的。唯一的缺點就是,因為它是
在瀏覽器中執行而且必須要繪出每個頁面,所以它的速度較慢,而且也不是每次在頁面
發生錯誤時都會告訴你。
5-3  使用 Chickenfoot 的畫面截圖
Flash
我們剛展示完從愛達華州的 No Child Left Behind 回報網站上抓取資料的範例,但並不
是所有州的網站都那麼容易可以將資料抓取下來。實際上某些州會提供
.csv
格式的原
始資料,這樣很棒,但要從其他州的網站上取得資料則是更難。
有個州(不幸的,我忘記是哪一個)認為使用 Adobe Flash 是最好顯示資料的方式。每
個學校擁有自己的網頁,網頁中每個被評定的科目都包含一個 Flash,會顯示綠色(極
佳)、黃色(普通)或是紅色(不好)的燈。Adobe Flash 是一個超級強大的平台,但不
論好壞,在要存取程式碼時都會是個極大的障礙。這代表當我們在取得資料時,必須要
用更有創意的方法。
81
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

RxJava反应式编程

RxJava反应式编程

Tomasz Nurkiewicz, Ben Christensen
高效能PYTHON程式設計

高效能PYTHON程式設計

Micha Gorelick, Ian Ozsvald
Kubernetes编程

Kubernetes编程

Michael Hausenblas, Stefan Schimanski

Publisher Resources

ISBN: 9789862768952