Skip to content

Commit

Permalink
Adiciona delay na spider base para SAI
Browse files Browse the repository at this point in the history
  • Loading branch information
trevineju authored Nov 10, 2024
2 parents cd9c37f + ab85132 commit 4e9672f
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions data_collection/gazette/spiders/base/sai.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
from datetime import date

import scrapy
from dateutil.parser import parse as dt_parse

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

base_url = None
start_date = None
base_url: str
start_date: date

custom_settings = {"DOWNLOAD_DELAY": 1.5}

@property
def _site_url(self):
Expand Down

0 comments on commit 4e9672f

Please sign in to comment.