scrapy/docs/proposed/newitem-fields.rst

1.4 KiB

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> </head>

Item Field Reference

System Message: ERROR/3 (<stdin>, line 7)

Unknown directive type "module".

.. module:: scrapy.contrib_exp.newitem.fields

Field options

default

System Message: ERROR/3 (<stdin>, line 15)

Unknown directive type "attribute".

.. attribute:: Field.default

The default value for the field.

Field types

StringField

A text field.

IntegerField

An integer.

DecimalField

A fixed-precision decimal number, represented in Python by a Decimal instance.

FloatField

A floating-point number represented in Python by a float instance.

BooleanField

A boolean (true/false) field.

DateTimeField

A date with time, represented in Python by a datetime.datetime instance.

DateField

A date, represented in Python by a datetime.date instance.

TimeField

A time, represented in Python by a datetime.time instance.

</html>