scrachy.db.models.ScrapeHistory
- class scrachy.db.models.ScrapeHistory(**kwargs)[source]
Bases:
BaseStore the history of when a page was scraped.
A simple constructor that allows initialization from kwargs.
Sets attributes on the constructed instance using the names and values in
kwargs.Only keys that are present as attributes of the instance’s class are allowed. These could be, for example, any mapped columns or relationships.
- __init__(**kwargs)
A simple constructor that allows initialization from kwargs.
Sets attributes on the constructed instance using the names and values in
kwargs.Only keys that are present as attributes of the instance’s class are allowed. These could be, for example, any mapped columns or relationships.
Methods
__init__(**kwargs)A simple constructor that allows initialization from kwargs.
to_dict([hide_missing, exclude_keys])Attributes
bodyfingerprintRefers to the
_schema.MetaDatacollection that will be used for new_schema.Tableobjects.Refers to the
_orm.registryin use where new_orm.Mapperobjects will be associated.scrape_timestamptype_annotation_map- metadata: ClassVar[MetaData] = MetaData()
Refers to the
_schema.MetaDatacollection that will be used for new_schema.Tableobjects.See also
- registry: ClassVar[_RegistryType] = <sqlalchemy.orm.decl_api.registry object>
Refers to the
_orm.registryin use where new_orm.Mapperobjects will be associated.