Python SDK for Crawlab
pip install crawlab-sdk
crawlab-cli
In settings.py
, add the following:
ITEM_PIPELINES = {
'crawlab.CrawlabPipeline': 300
}
from crawlab import save_item
scraped_items = [
{
'name': 'item1',
'value': 'value1'
},
{
'name': 'item2',
'value': 'value2'
}
]
for item in scraped_items:
save_item(item)
pip install poetry
poetry install