diff --git a/docs/intro/overview.rst b/docs/intro/overview.rst index a199b1baf..d10c20138 100644 --- a/docs/intro/overview.rst +++ b/docs/intro/overview.rst @@ -50,7 +50,7 @@ that to construct the regular expression for the links to follow: ``/tor/\d+``. For extracting data we'll use `XPath`_ to select the part of the document where the data is to be extracted. Let's take one of those torrent pages: - http://www.mininova.org/tor/2004522 + http://www.mininova.org/tor/2657665 .. _XPath: http://www.w3.org/TR/xpath @@ -62,7 +62,7 @@ want to extract which is: torrent name, description and size. By looking at the page HTML source we can see that the file name is contained inside a ``

`` tag:: -

The Dark Knight[2008]DvDrip-aXXo

+

Home[2009][Eng]XviD-ovd

.. highlight:: none @@ -74,15 +74,18 @@ An XPath expression to extract the name could be:: And the description is contained inside a ``
`` tag with ``id="description"``:: -

Description:

+

Description:

-
- > F i L E i N F O
- >
- > TiTLE......[ The Dark Knight
- > AKA........[ Batman Begins 2
+
+ "HOME" - a documentary film by Yann Arthus-Bertrand +
+
+ *** +
+
+ "We are living in exceptional times. Scientists tell us that we have 10 years to change the way we live, avert the depletion of natural resources and the catastrophic evolution of the Earth's climate. - ... + ... .. highlight:: none @@ -93,24 +96,25 @@ An XPath expression to select the description could be:: .. highlight:: html Finally, the file size is contained in the second ``

`` tag inside the ``

`` -tag with ``id=info-left``:: +tag with ``id=specifications``:: -
+

Category: - Movies > Action + Movies > Documentary

Total size: - 801.44 megabyte

+ 699.79 megabyte

+ .. highlight:: none An XPath expression to select the description could be:: - //div[@id='info-left']/p[2]/text()[2] + //div[@id='specifications']/p[2]/text()[2] .. highlight:: python