Answer the question
In order to leave comments, you need to log in
How to work with Scrapy via command line on Ubuntu?
Can you please tell me how to implement the function of passing start_urls, start_page, end_page through command line arguments in Scrapy?
Answer the question
In order to leave comments, you need to log in
Here is an elementary example of working with arguments, parse the input, shove what you need into variables and give it to scrapy
#!/usr/bin/python
# -*- coding: UTF-8 -*-
import sys
if __name__ == "__main__":
for param in sys.argv:
print (param)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question