EasySpider
EasySpider copied to clipboard
Dictionary's get replace catch exception in first three if case
- Using dictionary's
get
replace catch exception in first threeif case
. - Adding new IntEnum class for every item key word
option
ingraph
.
All finish in preprocess
.
I think line 254 to 256 can be changed to parameters["cookies"] = parameters.get("cookies", "") to make it more concise, can you check if correct and change to the more concise format? Fits for all remaining parts.
That is indeed more concise, but I referred to the previous writing method and was worried that the variable cookies would be used later, so I did not change it. If you think it is okay, I can make the change.
I think line 254 to 256 can be changed to parameters["cookies"] = parameters.get("cookies", "") to make it more concise, can you check if correct and change to the more concise format? Fits for all remaining parts.
Already do that.
Thank you for your help! Will check all the codes in the next few days.