Skip to content

Commit 4e9672f

Browse files
authored
Adiciona delay na spider base para SAI
2 parents cd9c37f + ab85132 commit 4e9672f

File tree

1 file changed

+6
-2
lines changed
  • data_collection/gazette/spiders/base

1 file changed

+6
-2
lines changed

data_collection/gazette/spiders/base/sai.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
from datetime import date
2+
13
import scrapy
24
from dateutil.parser import parse as dt_parse
35

@@ -23,8 +25,10 @@ class BaseSaiSpider(BaseGazetteSpider):
2325
Must be get into execution from website
2426
"""
2527

26-
base_url = None
27-
start_date = None
28+
base_url: str
29+
start_date: date
30+
31+
custom_settings = {"DOWNLOAD_DELAY": 1.5}
2832

2933
@property
3034
def _site_url(self):

0 commit comments

Comments
 (0)