{"action":"created","issue":{"url":"https://api.github.com/repos/xiyouMc/WebHubBot/issues/36","repository_url":"https://api.github.com/repos/xiyouMc/WebHubBot","labels_url":"https://api.github.com/repos/xiyouMc/WebHubBot/issues/36/labels{/name}","comments_url":"https://api.github.com/repos/xiyouMc/WebHubBot/issues/36/comments","events_url":"https://api.github.com/repos/xiyouMc/WebHubBot/issues/36/events","html_url":"https://github.com/xiyouMc/WebHubBot/issues/36","id":294821654,"number":36,"title":"运行错误.怎么解决..","user":{"login":"wiiii","id":16551444,"avatar_url":"https://avatars0.githubusercontent.com/u/16551444?v=4","gravatar_id":"","url":"https://api.github.com/users/wiiii","html_url":"https://github.com/wiiii","followers_url":"https://api.github.com/users/wiiii/followers","following_url":"https://api.github.com/users/wiiii/following{/other_user}","gists_url":"https://api.github.com/users/wiiii/gists{/gist_id}","starred_url":"https://api.github.com/users/wiiii/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wiiii/subscriptions","organizations_url":"https://api.github.com/users/wiiii/orgs","repos_url":"https://api.github.com/users/wiiii/repos","events_url":"https://api.github.com/users/wiiii/events{/privacy}","received_events_url":"https://api.github.com/users/wiiii/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-02-06T16:22:00Z","updated_at":"2018-02-07T06:12:56Z","closed_at":"2018-02-07T06:12:56Z","author_association":"NONE","body":"D:\\Develop\\PythonSpace\\WebHubBot\\PornHub\\PornHub\\spiders\\pornHubSpider.py:4: ScrapyDeprecationWarning: Module `scrapy.spider` is deprecated, use `scrapy.spiders` instead\r\n  from scrapy.spider import CrawlSpider\r\n2018-02-07 00:14:28 [scrapy.utils.log] INFO: Scrapy 1.4.0 started (bot: PornHub)\r\n2018-02-07 00:14:28 [scrapy.utils.log] INFO: Overridden settings: {'BOT_NAME': 'PornHub', 'CONCURRENT_REQUESTS': 20, 'DEPTH_PRIORITY': 1, 'DOWNLOAD_DELAY': 1, 'FEED_FORMAT': 'CSV', 'FEED_URI': '/Users/xiyouMc/Documents/pornhub.csv', 'NEWSPIDER_MODULE': 'PornHub.spiders', 'REDIRECT_ENABLED': False, 'ROBOTSTXT_OBEY': True, 'SCHEDULER_DISK_QUEUE': 'scrapy.squeues.PickleFifoDiskQueue', 'SCHEDULER_MEMORY_QUEUE': 'scrapy.squeues.FifoMemoryQueue', 'SPIDER_MODULES': ['PornHub.spiders']}\r\n2018-02-07 00:14:28 [scrapy.middleware] INFO: Enabled extensions:\r\n['scrapy.extensions.corestats.CoreStats',\r\n 'scrapy.extensions.telnet.TelnetConsole',\r\n 'scrapy.extensions.feedexport.FeedExporter',\r\n 'scrapy.extensions.logstats.LogStats']\r\nUnhandled error in Deferred:\r\n2018-02-07 00:14:28 [twisted] CRITICAL: Unhandled error in Deferred:\r\n\r\n2018-02-07 00:14:28 [twisted] CRITICAL: \r\nTraceback (most recent call last):\r\n  File \"D:\\Develop\\mzitu\\venv\\lib\\site-packages\\twisted\\internet\\defer.py\", line 1386, in _inlineCallbacks\r\n    result = g.send(result)\r\n  File \"D:\\Develop\\mzitu\\venv\\lib\\site-packages\\scrapy\\crawler.py\", line 77, in crawl\r\n    self.engine = self._create_engine()\r\n  File \"D:\\Develop\\mzitu\\venv\\lib\\site-packages\\scrapy\\crawler.py\", line 102, in _create_engine\r\n    return ExecutionEngine(self, lambda _: self.stop())\r\n  File \"D:\\Develop\\mzitu\\venv\\lib\\site-packages\\scrapy\\core\\engine.py\", line 69, in __init__\r\n    self.downloader = downloader_cls(crawler)\r\n  File \"D:\\Develop\\mzitu\\venv\\lib\\site-packages\\scrapy\\core\\downloader\\__init__.py\", line 88, in __init__\r\n    self.middleware = DownloaderMiddlewareManager.from_crawler(crawler)\r\n  File \"D:\\Develop\\mzitu\\venv\\lib\\site-packages\\scrapy\\middleware.py\", line 58, in from_crawler\r\n    return cls.from_settings(crawler.settings, crawler)\r\n  File \"D:\\Develop\\mzitu\\venv\\lib\\site-packages\\scrapy\\middleware.py\", line 34, in from_settings\r\n    mwcls = load_object(clspath)\r\n  File \"D:\\Develop\\mzitu\\venv\\lib\\site-packages\\scrapy\\utils\\misc.py\", line 44, in load_object\r\n    mod = import_module(module)\r\n  File \"D:\\Develop\\mzitu\\venv\\lib\\importlib\\__init__.py\", line 126, in import_module\r\n    return _bootstrap._gcd_import(name[level:], package, level)\r\n  File \"<frozen importlib._bootstrap>\", line 994, in _gcd_import\r\n  File \"<frozen importlib._bootstrap>\", line 971, in _find_and_load\r\n  File \"<frozen importlib._bootstrap>\", line 955, in _find_and_load_unlocked\r\n  File \"<frozen importlib._bootstrap>\", line 665, in _load_unlocked\r\n  File \"<frozen importlib._bootstrap_external>\", line 678, in exec_module\r\n  File \"<frozen importlib._bootstrap>\", line 219, in _call_with_frames_removed\r\n  File \"D:\\Develop\\PythonSpace\\WebHubBot\\PornHub\\PornHub\\middlewares.py\", line 3, in <module>\r\n    from user_agents import agents\r\nModuleNotFoundError: No module named 'user_agents'"},"comment":{"url":"https://api.github.com/repos/xiyouMc/WebHubBot/issues/comments/363668208","html_url":"https://github.com/xiyouMc/WebHubBot/issues/36#issuecomment-363668208","issue_url":"https://api.github.com/repos/xiyouMc/WebHubBot/issues/36","id":363668208,"user":{"login":"xiyouMc","id":8032883,"avatar_url":"https://avatars0.githubusercontent.com/u/8032883?v=4","gravatar_id":"","url":"https://api.github.com/users/xiyouMc","html_url":"https://github.com/xiyouMc","followers_url":"https://api.github.com/users/xiyouMc/followers","following_url":"https://api.github.com/users/xiyouMc/following{/other_user}","gists_url":"https://api.github.com/users/xiyouMc/gists{/gist_id}","starred_url":"https://api.github.com/users/xiyouMc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xiyouMc/subscriptions","organizations_url":"https://api.github.com/users/xiyouMc/orgs","repos_url":"https://api.github.com/users/xiyouMc/repos","events_url":"https://api.github.com/users/xiyouMc/events{/privacy}","received_events_url":"https://api.github.com/users/xiyouMc/received_events","type":"User","site_admin":false},"created_at":"2018-02-07T06:12:56Z","updated_at":"2018-02-07T06:12:56Z","author_association":"OWNER","body":"user_agents 组件是 user_agents.py 文件，可以查看下这个文件是否存在。 其次尝试把 from user_agents import agents 改为 from ./user_agents import agents"}}
{"actor":{"display_login":"xiyouMc"}}