MCPcopy
hub / github.com/scrapy/scrapy / getint

Method getint

scrapy/settings/__init__.py:205–215  ·  view source on GitHub ↗

Get a setting value as an int. :param name: the setting name :type name: str :param default: the value to return if no setting is found :type default: object

(self, name: _SettingsKey, default: int = 0)

Source from the content-addressed store, hash-verified

203 ) from None
204
205 def getint(self, name: _SettingsKey, default: int = 0) -> int:
206 """
207 Get a setting value as an int.
208
209 :param name: the setting name
210 :type name: str
211
212 :param default: the value to return if no setting is found
213 :type default: object
214 """
215 return int(self.get(name, default))
216
217 def getfloat(self, name: _SettingsKey, default: float = 0.0) -> float:
218 """

Callers 15

_setup_reactorMethod · 0.80
__init__Method · 0.80
from_crawlerMethod · 0.80
from_crawlerMethod · 0.80
from_crawlerMethod · 0.80
from_crawlerMethod · 0.80
runMethod · 0.80
__init__Method · 0.80
open_spider_asyncMethod · 0.80
__init__Method · 0.80
__init__Method · 0.80

Calls 1

getMethod · 0.95

Tested by 9

assertExportedCsvMethod · 0.64
assertExportedXmlMethod · 0.64
assertExportedPickleMethod · 0.64
assertExportedMarshalMethod · 0.64
test_getMethod · 0.64