plantvsbirds / xq-getUnitData

unit scraper
0 stars 0 forks source link

Deal with 404 #6

Closed plantvsbirds closed 8 years ago

plantvsbirds commented 8 years ago

It's actually well dealt with in latest version And few dozens before this commit f11aeea041f3298411eb1eaa1be81dc44983e701

root@hl0-ubuntu0-mini:/home/xq-getUnitData# node index ZH102133
Not called as a module. Getting data from default
{ errorCode: 299,
  errorString: 'Error downloading http://xueqiu.com/cubes/rb/get_running.json?symbol=ZH102133 - server replied: Bad Request',
  id: 33,
  url: 'http://xueqiu.com/cubes/rb/get_running.json?symbol=ZH102133' }
{ errorCode: 299,
  errorString: 'Error downloading http://xueqiu.com/cubes/rebalancing/show_origin.json?rb_id= - server replied: Bad Request',
  id: 36,
  url: 'http://xueqiu.com/cubes/rebalancing/show_origin.json?rb_id=' }
undefined
Exiting with code 0

It returns: undefined. This issue should be resolved at crawler manager level, not in this module