You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 4, 2023. It is now read-only.
CasperJS, a navigation scripting and testing utility for PhantomJS | CasperJS 1.0.0
44
+
PhantomJS: Headless WebKit with JavaScript API
45
+
46
+
.. topic:: What did we just do?
47
+
48
+
1. we created a new :ref:`Casper <casper_module>` instance
49
+
2. we started it and opened ``http://casperjs.org/``
50
+
3. *once* the page has been loaded, we asked to print the title of that webpage (the content of its ``<title>`` tag)
51
+
4. *then* we opened another url, ``http://phantomjs.org/``
52
+
5. *once* the new page has been loaded, we asked to print its title too
53
+
6. we executed the whole process
54
+
55
+
56
+
Now let's scrape Google!
57
+
------------------------
17
58
18
59
In the following example, we'll query google for two terms consecutively, *"casperjs"* and *"phantomjs"*, aggregate the result links in a standard ``Array`` and output the result to the console.
0 commit comments