Skip to content

Commit 8bf1e80

Browse files
committed
Added to the README
1 parent 8643dcf commit 8bf1e80

File tree

2 files changed

+21
-3
lines changed

2 files changed

+21
-3
lines changed

README.md

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,23 @@ Scrape using Selenium webdriver.
66
Installation
77
=============
88

9-
For now, nothing's on pypi, but this should work:
9+
For now it's not on pypi, but this should work:
1010

1111
pip install https://github.com/sosign/scrapy-webdriver/archive/master.zip
1212

13+
Or something like this, in setup.py:
14+
15+
setup(
16+
install_requires=[
17+
'scrapy_webdriver',
18+
...,
19+
],
20+
dependency_links=[
21+
'https://github.com/sosign/scrapy-webdriver/archive/master.zip#egg=scrapy_webdriver',
22+
],
23+
...,
24+
)
25+
1326
Configuration
1427
=============
1528

@@ -31,7 +44,12 @@ Usage
3144

3245
In order to have webdriver handle your downloads, use the provided
3346
class `scrapy_webdriver.http.WebdriverRequest` in place of the stock scrapy
34-
`Request`.
47+
`Request`, like so:
48+
49+
from scrapy_webdriver.http import WebdriverRequest
50+
yield WebdriverRequest('http://www.example.com')
51+
52+
Parameters not supported (yet?) are: `method`, `body`, `headers`, `cookies`.
3553

3654
Hacking
3755
=======

scrapy_webdriver/http.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ def replace(self, *args, **kwargs):
1616

1717

1818
class WebdriverInPageRequest(WebdriverRequest):
19-
"""A Request that handles in-page webdriver actions."""
19+
"""A Request that handles in-page webdriver actions (action chains)."""
2020
def __init__(self, response, actions=None, **kwargs):
2121
kwargs.setdefault('manager', response.request.manager)
2222
url = kwargs.pop('url', response.request.url)

0 commit comments

Comments
 (0)