'Convenience function for creating a ready-to-go requests.Session (subclass) object.'

@classmethod
def create_scraper(cls, sess=None, **kwargs):

    scraper = cls()
    if sess:
        attrs = ['auth', 'cert', 'cookies', 'headers', 'hooks', 'params', 'proxies', 'data']
        for attr in attrs:
            val = getattr(sess, attr, None)
            if val:
                setattr(scraper, attr, val)
    return scraper
