Daniel Graña
65d631329a
Be consistent with domain used for links to documentation website
2019-01-31 01:28:53 -03:00
Mikhail Korobov
ffbd33edac
DOC mention gotcha with `foo::text` selector and empty `foo` elements
...
also, move "Selecting attributes" reference closer to `a::atr(href)` example
2018-09-18 05:03:35 +05:00
Mikhail Korobov
2c3b2158c9
DOC address @stummjr's review comments
...
* fixed several small issues
* re-written "Creating Selectors" section
* fixed remaining .extract usage in tests
2018-09-18 05:02:17 +05:00
Mikhail Korobov
9db21e5502
DOC fix remove_namespaces example
...
See https://github.com/scrapy/parsel/pull/119
2018-09-15 02:43:37 +05:00
Mikhail Korobov
dc95ecbe25
DOC use autodocs for selectors; document more methods and attributes; suggest get/getall
2018-09-12 18:36:25 +05:00
Mikhail Korobov
7fdfdb7fa2
DOC reorganize selectors tutorial, port more topics from parsel docs, adjust wording in the introduction
2018-09-12 17:57:27 +05:00
Mikhail Korobov
2c48d156db
DOC cleanup references in tutorials:
...
* remove unused link
* fix ReST syntax
* fix a link to regular expression docs
2018-09-12 17:57:27 +05:00
Mikhail Korobov
d32c4deaa9
DOC update Scrapy selectors tutorial to match parsel's tutorial better
2018-09-12 17:57:27 +05:00
Mikhail Korobov
0ccead6681
DOC more Python 3 in examples
2018-09-12 17:57:27 +05:00
Aditya
9d9d83a8c3
Use https links wherever possible
2017-10-28 16:24:40 +05:30
Aditya
9dd680d5c9
Use https for external links wherever possible in docs
2017-10-26 23:33:45 +05:30
Mikhail Korobov
9731077a54
Merge pull request #2683 from harshasrinivas/docs-SelectorList
...
[MRG+1] Remove __nonzero__ from SelectorList docs
2017-04-12 21:25:00 +05:00
Paul Tremberth
422b38f65c
DOC Rearrange selector sections
2017-04-11 16:55:43 +02:00
harshasrinivas
2ff6b05723
Remove __nonzero__ from SelectorList docs
2017-03-24 20:43:28 +05:30
Paul Tremberth
d205206aaa
Merge pull request #2345 from gustavodeandrade/master
...
[MRG+1] Fix documentation about HTML entities decoding with selector extraction
2017-02-08 13:21:15 +01:00
Paul Tremberth
1c0b805357
DOC Mention XPath variables in Selectors section
2017-02-02 17:44:57 +01:00
Gustavo de Andrade
f2e49bc23c
Update selectors.rst
...
Decode instead escape, exceptions < and & (kmike)
Second sentence droped (Digenis)
2016-11-01 21:32:17 -02:00
gustavodeandrade
c7dfb5eb88
Fix issue 1704
2016-10-21 00:08:08 -02:00
Panayiotis Lipiridis
3f8be374c3
Github >> GitHub
2016-05-09 16:15:18 +02:00
Paul Tremberth
1075587dbd
Add support for Sphinx 1.4
...
See http://www.sphinx-doc.org/en/stable/changes.html#release-1-4-released-mar-28-2016
sphinx_rtd_theme has become optional, needs to be added to reqs
https://github.com/sphinx-doc/sphinx/pull/2320 changes node entries tuples
to 5 values instead of 4
`sh` syntax highlighting added very locally in selectors.rst
because of this warning/error with Sphinx 1.4:
```
Warning, treated as error:
/home/paul/src/scrapy/docs/topics/selectors.rst:743:
WARNING: Could not lex literal_block as "python". Highlighting skipped.
```
2016-03-30 14:40:52 +02:00
Lele
7082454f2a
Changed sel. to response. for clarity
...
Changed sel. to response. to comply with the rest of the examples in the same section, to avoid confusion.
2016-03-28 05:27:15 +05:00
nyov
5876b9aa30
Update documentation links
2016-03-03 16:28:33 +00:00
David Chen
0025d5a943
Fixed minor grammar issues.
2015-11-16 07:30:17 +08:00
hoatle
2869cf8dde
fix another invalid xpath error
2015-10-07 16:03:43 +07:00
Hoat Le
4e66955411
fix ValueError: Invalid XPath: //div/[id="not-exists"]/text() on selectors.rst
...
>>> response.xpath('//div/[id="not-exists"]/text()').extract_first() is None
Traceback (most recent call last):
File "<console>", line 1, in <module>
File "/home/vagrant/.virtualenvs/scrapy/lib/python2.7/site-packages/scrapy/http/response/text.py", line 109, in xpath
return self.selector.xpath(query)
File "/home/vagrant/.virtualenvs/scrapy/lib/python2.7/site-packages/scrapy/selector/unified.py", line 100, in xpath
raise ValueError(msg if six.PY3 else msg.encode("unicode_escape"))
ValueError: Invalid XPath: //div/[id="not-exists"]/text()
2015-10-07 15:43:02 +07:00
Bryan Crowe
6a4c475e87
Fix a couple typos
2015-06-11 19:47:30 -04:00
Mikhail Korobov
cc2258b2bb
Merge pull request #1145 from bosnj/master
...
[MRG+1] default return value for extract_first
2015-05-21 22:03:54 +05:00
Julia Medina
c271d8f0b1
Title underline too short in docs/topics/selectors.rst
2015-05-09 05:20:54 -03:00
bosnj
8ae05478be
added docs and test case, fixed handling empty string vs None
2015-05-04 21:22:17 +02:00
Elias Dorneles
3d3633f3d2
favoring web scraping over screen scraping in the descriptions
2015-04-25 11:20:20 -03:00
bagratte
beea9267a1
minor corrections in documentation.
2015-04-18 19:48:25 +04:00
Daniel Graña
f71175a449
More replaces of references to old `sel` shortcut
2015-04-12 21:56:23 -03:00
Julia Medina
959aaad205
Document `re_first`
2015-03-18 21:11:08 -03:00
Mateusz Golewski
127c6c694a
Fix extract_first() docs
2015-03-18 21:11:08 -03:00
Mateusz Golewski
012211accd
Add docs for extract_first()
2015-03-18 21:11:08 -03:00
Shadab Zafar
5a58d64131
Fix some redirection links in documentation
...
Fixes #606
2015-03-18 19:41:26 -03:00
Elias Dorneles
c298eaf164
removes weird indentation in the shell results
2014-07-23 20:42:36 -03:00
Elias Dorneles
514e8582d0
improved explanations, clarified blog post as source, added link for XPath string functions in the spec
2014-07-23 19:43:57 -03:00
Elias Dorneles
80de43ddab
adding some xpath tips to selectors docs
2014-07-22 23:20:53 -03:00
Mikhail Korobov
bdea071af3
DOC selectors.rst cleanup
2014-04-24 22:54:17 +06:00
ncp1113
5f18816428
for loops have to have a : at the end of the line
...
changed 3 instances
2014-04-24 22:50:21 +06:00
Daniel Graña
18412d75b5
Ammend example nesting selectors
2014-04-24 10:32:17 -03:00
Daniel Graña
1117687c47
update docs
2014-04-23 23:39:58 -03:00
Mikhail Korobov
2d3803672b
DOC use top-level shortcuts in docs
2014-04-15 01:09:35 +06:00
Julia Medina
80081054a2
Fix broken links in documentation
2014-04-09 18:57:52 -03:00
Paul Tremberth
827c0cf51f
Rename "regexp" prefix to "re"
2014-01-15 15:00:25 +01:00
Paul Tremberth
88c8a523a7
Add warning in docs on performance when using EXSLT regexp functions
2014-01-15 12:52:10 +01:00
Paul Tremberth
a3eba68aca
Drop EXSLT strings and math extensions
2014-01-15 12:28:25 +01:00
Paul Tremberth
2cc26e6f56
Fix typo error
2014-01-14 13:09:18 +01:00
Paul Tremberth
29fc9f3466
Update selectors documentation and tests
2014-01-14 12:56:37 +01:00