{"action":"opened","issue":{"url":"https://api.github.com/repos/bowenpay/wechat-spider/issues/16","repository_url":"https://api.github.com/repos/bowenpay/wechat-spider","labels_url":"https://api.github.com/repos/bowenpay/wechat-spider/issues/16/labels{/name}","comments_url":"https://api.github.com/repos/bowenpay/wechat-spider/issues/16/comments","events_url":"https://api.github.com/repos/bowenpay/wechat-spider/issues/16/events","html_url":"https://github.com/bowenpay/wechat-spider/issues/16","id":185616724,"number":16,"title":"wechatspider_processor.stderr.log 日志打印的错误","user":{"login":"vipwpcom","id":19487999,"avatar_url":"https://avatars.githubusercontent.com/u/19487999?v=3","gravatar_id":"","url":"https://api.github.com/users/vipwpcom","html_url":"https://github.com/vipwpcom","followers_url":"https://api.github.com/users/vipwpcom/followers","following_url":"https://api.github.com/users/vipwpcom/following{/other_user}","gists_url":"https://api.github.com/users/vipwpcom/gists{/gist_id}","starred_url":"https://api.github.com/users/vipwpcom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vipwpcom/subscriptions","organizations_url":"https://api.github.com/users/vipwpcom/orgs","repos_url":"https://api.github.com/users/vipwpcom/repos","events_url":"https://api.github.com/users/vipwpcom/events{/privacy}","received_events_url":"https://api.github.com/users/vipwpcom/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-10-27T09:26:15Z","updated_at":"2016-10-27T09:26:15Z","closed_at":null,"body":"启动程序后，添加微信公众号，有些公众号没有爬取到，我看了下日志，失败的情况都一致，其中有如下片段：\r\nINFO 2016-10-27 16:40:50,715 processor 32482 140638797100800 {\"publish_time\": \"2016-10-27 16:40:50.702217\", \"title\": \"分享一个特大写的尴尬！\", \"url\": \"http://mp.weixin.qq.com/s?timestamp=1477557622&src=3&ver=1&signature=qpCRLCGlM315db1DuiJml0rC3iNHPFuoBkzU9ixxfUyDLxOrV-2-yFbiczQUgLHDtqGPPyaTj2nKF*e3xvxepzroE2qcuzf6M3GS8Ue7W92aEGPnv6B1YzFV2AP52FuyeMVvoQUGT0tmtSURc7poZMc87sJOowfGJHX5cHJDXMI=\", \"origin_title\": \"分享一个特大写的尴尬！[省略号]............................\", \"words\": 14, \"wechat_id\": 2, \"read_num\": [\"100000+\"]}\r\n\r\nTraceback (most recent call last):\r\n  File \"/var/wdcp1/wechat-spider/bin/processor.py\", line 57, in <module>\r\n    processor.run()\r\n  File \"/var/wdcp1/wechat-spider/bin/processor.py\", line 52, in run\r\n    self.process(data)\r\n  File \"/var/wdcp1/wechat-spider/bin/processor.py\", line 37, in process\r\n    backend.process(data)\r\n  File \"/var/wdcp1/wechat-spider/wechat/processors.py\", line 48, in process\r\n    C.objects.update_or_create(uniqueid=params['uniqueid'], defaults=params)\r\n  File \"/usr/local/lib/python2.7/site-packages/django/db/models/manager.py\", line 127, in manager_method\r\n    return getattr(self.get_queryset(), name)(*args, **kwargs)\r\n  File \"/usr/local/lib/python2.7/site-packages/django/db/models/query.py\", line 422, in update_or_create\r\n    obj, created = self._create_object_from_params(lookup, params)\r\n  File \"/usr/local/lib/python2.7/site-packages/django/db/models/query.py\", line 439, in _create_object_from_params\r\n    obj = self.create(**params)\r\n  File \"/usr/local/lib/python2.7/site-packages/django/db/models/query.py\", line 348, in create\r\n    obj.save(force_insert=True, using=self.db)\r\n  File \"/usr/local/lib/python2.7/site-packages/django/db/models/base.py\", line 710, in save\r\n    force_update=force_update, update_fields=update_fields)\r\n  File \"/usr/local/lib/python2.7/site-packages/django/db/models/base.py\", line 738, in save_base\r\n    updated = self._save_table(raw, cls, force_insert, force_update, using, update_fields)\r\n  File \"/usr/local/lib/python2.7/site-packages/django/db/models/base.py\", line 822, in _save_table\r\n    result = self._do_insert(cls._base_manager, using, fields, update_pk, raw)\r\n  File \"/usr/local/lib/python2.7/site-packages/django/db/models/base.py\", line 861, in _do_insert\r\n    using=using, raw=raw)\r\n  File \"/usr/local/lib/python2.7/site-packages/django/db/models/manager.py\", line 127, in manager_method\r\n    return getattr(self.get_queryset(), name)(*args, **kwargs)\r\n  File \"/usr/local/lib/python2.7/site-packages/django/db/models/query.py\", line 920, in _insert\r\n    return query.get_compiler(using=using).execute_sql(return_id)\r\n  File \"/usr/local/lib/python2.7/site-packages/django/db/models/sql/compiler.py\", line 970, in execute_sql\r\n    for sql, params in self.as_sql():\r\n  File \"/usr/local/lib/python2.7/site-packages/django/db/models/sql/compiler.py\", line 928, in as_sql\r\n    for obj in self.query.objs\r\n  File \"/usr/local/lib/python2.7/site-packages/django/db/models/fields/__init__.py\", line 710, in get_db_prep_save\r\n    prepared=False)\r\n  File \"/usr/local/lib/python2.7/site-packages/django/db/models/fields/__init__.py\", line 702, in get_db_prep_value\r\n    value = self.get_prep_value(value)\r\n  File \"/usr/local/lib/python2.7/site-packages/django/db/models/fields/__init__.py\", line 1868, in get_prep_value\r\n    return int(value)\r\nTypeError: int() argument must be a string or a number, not 'list'\r\n\r\n\r\n求解答！"}}
{"actor":{"display_login":"vipwpcom"}}