Skip to Content
Python数据处理
book

Python数据处理

by Jacqueline Kazil, Katharine Jarmul
July 2017
Intermediate to advanced
398 pages
11h 54m
Chinese
Posts & Telecom Press
Content preview from Python数据处理
高级网页抓取:屏幕抓取器与爬虫
261
12.1.2
 使用
Ghost.py
进行屏幕读取
Ghost.py
http://jeanphix.me/Ghost.py/
)是一个用于屏幕读取的
WebKit
实现,用来直接
Qt WebKit
http://doc.qt.io/qt-5/qtwebkit-index.html
)交互。
Qt WebKit
是一个基于
Qt
https://en.wikipedia.org/wiki/Qt_(software)
)的
WebKit
实现,而
Qt
是一个用
C++
实现的跨
平台的应用开发框架。
为了开始使用
Ghost.py
,你首先需要安装一些很有效的库。如果你能够安装
PySide
https://pypi.python.org/pypi/PySide
),那效果会是最好的,这会允许
Python
Qt
通信,给
Python
访问更广泛程序和交互的能力。这个过程会花一些时间,所以在开始运行安装之
后,尽情地去给自己做一个三明治吧
2
pip install pyside
pip install ghost.py --pre
使用
Ghost.py
搜索
Python
主页(
http://python.org
),找到新的抓取文档。开始一个新的
Ghost.py
实例非常简单:
from
ghost
import
Ghost
ghost = Ghost()
with
ghost.start()
as
session:
page, extra_resources = session.open('http://python.org') ...
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

数据科学中的实用统计学(第2版)

数据科学中的实用统计学(第2版)

Peter Bruce, Andrew Bruce, Peter Gedeck
Java持续交付

Java持续交付

Daniel Bryant, Abraham Marín-Pérez
解密金融数据

解密金融数据

Justin Pauley

Publisher Resources

ISBN: 9787115459190