Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

allow pass extra settings for portiacrawl close #63 #74

Merged
merged 2 commits into from
Jul 1, 2014

Conversation

tpeng
Copy link
Contributor

@tpeng tpeng commented Jun 27, 2014

now besides add setting to slyd/slyd/settings.py, portiacrawl also allow user adding extra settings from command line. e.g. slybot/bin/portiacrawl -v slyd/data/projects/new_project/ www.yelp.co.uk -a start_urls=http://www.yelp.co.uk/biz/barrafina-london -s DEPTH_LIMIT=1

parser.add_option("--output", "-o", help='dump scraped items into FILE (use - for stdout)', metavar='FILE')
parser.add_option("--output-format", "-t", metavar='FORMAT', help='format to use for dumping items with -o (default: jsonlines)')
parser.add_option("--verbose", "-v", action="store_true", default=True, help="more verbose")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am not sure if verbose should default to true. Also I would make the help message more accurate, something on the lines of "Prints the command used to run the crawler".

duendex added a commit that referenced this pull request Jul 1, 2014
allow pass extra settings for portiacrawl close #63
@duendex duendex merged commit 38f0261 into scrapinghub:master Jul 1, 2014
@tpeng tpeng deleted the patch-2 branch July 1, 2014 07:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants