Skip to content

Instantly share code, notes, and snippets.

@heamon7
Created June 22, 2015 06:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save heamon7/b662a9db89b6e1a69919 to your computer and use it in GitHub Desktop.
Save heamon7/b662a9db89b6e1a69919 to your computer and use it in GitHub Desktop.
#1.get kwargs in scrapyd
class MySpider(Spider):
name = 'somespider'
def __init__(self, *args, **kwargs):
super(MySpider, self).__init__(*args, **kwargs)
self.myargument = kwargs.get('myargument', '')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment