Did I find the right examples for you? yes no

All Samples(2)  |  Call(1)  |  Derive(0)  |  Import(1)

src/h/n/HNScrapy-HEAD/hn/pipelines.py   HNScrapy(Download)
from sqlalchemy.orm import sessionmaker
from models import Hn, db_connect, create_hn_table
 
class HnPipeline(object):
    def __init__(self):
    def process_item(self, item, spider):
        session = self.Session()
        hn = Hn(**item)
        session.add(hn)
        session.commit()