Skip to content

Commit

Permalink
Some config info
Browse files Browse the repository at this point in the history
  • Loading branch information
Šarūnas Navickas committed Sep 6, 2016
1 parent 3016080 commit 81d947d
Show file tree
Hide file tree
Showing 4 changed files with 58 additions and 0 deletions.
Empty file added docs/config.rst
Empty file.
1 change: 1 addition & 0 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@ Contents:

installing
usage
config
4 changes: 4 additions & 0 deletions docs/installing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ Requirements
------------
* Python 2.7, 3.4, 3.5, or PyPy

Optional dependencies
---------------------
* `lxml` library inside system if you consider using it as a parser


Installing
----------
Expand Down
53 changes: 53 additions & 0 deletions docs/usage.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
Configuration
=============

Config
------

============ ================ ======================================
Value Notes Description
============ ================ ======================================
name A user-friendly name for configuration
description Description about configuration
site_root Site url which we will be scrapping
start_page Where to start our scrapping
cookies (Optional, Array) Add cookies to our requests
headers (Optional, Array) Add headers to our requests
proxies (Optional, Array) List of http proxies to be used for requests
pages (Array) Consists an array of `Page`
parser (Optional) Select parser for web pages. Default: html.parser, or you can use lxml
auth (Optional) `Auth` object
============ ================ ======================================


Auth
----

============ ================ ======================================
Value Notes Description
============ ================ ======================================
url Login url
method (Optional) Default: POST, you can add any other http method
params (Array) Key-Value pairs for request
============ ================ ======================================

Page
----

============ ================ ======================================
Value Notes Description
============ ================ ======================================
name Name of page
link_pattern Pattern which allows to detect which page parser to use
mappings (Array) Array of `Mapping`
============ ================ ======================================

Mapping
-------

============ ================ ======================================
Value Notes Description
============ ================ ======================================
name Name of mapping
path Path to element
============ ================ ======================================

0 comments on commit 81d947d

Please sign in to comment.