simonaoliver / metageta

Automatically exported from code.google.com/p/metageta
Other
0 stars 0 forks source link

Crawler always run recursively #47

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
In runcrawler.py the option for arg -r is set to True as default.
this precvent it to be used as if you omit the -r in the command line it takes 
the default value of True. Itf you insert the -r in the command line it is 
again set to True.
I think line 326 should be patched from

opt=parser.add_option("-r", "--recurse", action="store_true", 
dest="recurse",default=True,

to

opt=parser.add_option("-r", "--recurse", action="store_true", 
dest="recurse",default=False,

Regards 

Stefano

Original issue reported on code.google.com by stefano....@gmail.com on 30 Jul 2012 at 12:29

GoogleCodeExporter commented 9 years ago

Original comment by pinner.luke@gmail.com on 31 Jul 2012 at 2:05

GoogleCodeExporter commented 9 years ago
This issue was closed by revision r695.

Original comment by pinner.luke@gmail.com on 31 Jul 2012 at 6:29

GoogleCodeExporter commented 9 years ago
The revision didn't fix the issue.
If you try to run runcrawler.py with or without the -r command line argument 
and check what value the recurse variable is assigne, it is always True. 
Please have a look at proposed change.

Regards

Stefano

Original comment by stefano....@gmail.com on 31 Jul 2012 at 7:23

GoogleCodeExporter commented 9 years ago
I had made that change, but neglected to click 'Save' before committing.  One 
of the great conveniences of my python IDE is that it allows me to run scripts 
without saving, it can also cause issues like this :).

This issue was updated by r696.

Original comment by pinner.luke@gmail.com on 31 Jul 2012 at 11:40

GoogleCodeExporter commented 9 years ago
:) I do agrre, Idle is a pain to me in debugging but it stop you from running 
without saving.
Thank you for fixing

Original comment by stefano....@gmail.com on 1 Aug 2012 at 6:07