Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a18b9ea

Browse files
committed
Merge pull request binux#227 from exoticknight/master
fix code and grammer
2 parents 9ab4d44 + 4cefb36 commit a18b9ea

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/apis/self.crawl.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ class Handler(BaseHandler):
6666
'itag': 'v223'
6767
}
6868
```
69-
> Change the value of itag after you modified the script and click run button again. It don't matter if not set before.
69+
> Change the value of itag after you modified the script and click run button again. It doesn't matter if not set before.
7070
7171
* `auto_recrawl` - when enabled, task would be recrawled every `age` time. _default: False_ <a name="auto_recrawl" href="#auto_recrawl">¶</a>
7272

@@ -151,7 +151,7 @@ def callback(self, response):
151151
* `taskid` - unique id to identify the task, default is the MD5 check code of the URL, can be overridden by method `def get_taskid(self, task)` <a name="taskid" href="#taskid">¶</a>
152152

153153
```python
154-
import son
154+
import json
155155
from pyspider.libs.utils import md5string
156156
def get_taskid(self, task):
157157
return md5string(task['url']+json.dumps(task['data']))

0 commit comments

Comments
 (0)