Skip to content

Commit d7683aa

Browse files
authored
Update middleware path and formatting in README
1 parent b0cf51c commit d7683aa

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -68,13 +68,13 @@ Block unwanted URLs in your Scrapy projects with intelligent filtering.
6868

6969
1. **Add to your Scrapy project's `settings.py`:**
7070
```python
71-
DOWNLOADER_MIDDLEWARES = {
72-
'ps_helper.url_blocker.URLBlockerMiddleware': 585,
73-
}
71+
"DOWNLOADER_MIDDLEWARES": {
72+
'ps_helper.blockers.url_blocker.URLBlockerMiddleware': 585,
73+
},
7474

7575
# Configure words to block
76-
URL_BLOCKER_WORDS = ['admin', 'login', '.css', '.js', 'api/']
77-
URL_BLOCKER_MODE = 'partial' # or 'strict'
76+
"URL_BLOCKER_WORDS": ['admin', 'login', '.css', '.js', 'api/']
77+
"URL_BLOCKER_MODE": 'partial' # or 'strict'
7878
```
7979

8080
2. **Run your spider** - unwanted URLs will be automatically filtered!

0 commit comments

Comments
 (0)