Skip to content

Commit

Permalink
fix warn
Browse files Browse the repository at this point in the history
  • Loading branch information
myg133 committed Feb 8, 2018
1 parent fe45805 commit 87198e5
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 8 deletions.
3 changes: 2 additions & 1 deletion UnitTest/SpiderTest.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
pass

import unittest
from WebCrawl.Spider import *
from WebCrawl.Spider import Spider


class SpiderTest(unittest.TestCase):
Expand All @@ -35,5 +35,6 @@ def testSpiderFeed(self):
self.assertIsNotNone(data)
pass


if __name__ == '__main__':
unittest.main()
5 changes: 3 additions & 2 deletions WebCrawl/Feeder.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
pass

from Common.Scheduler import Scheduler
from WebCrawl.Spider import *
from WebCrawl.Spider import Spider


class Feeder(Scheduler):
Expand All @@ -33,6 +33,7 @@ def __GetSpider(self, url=''):

def SendSpider(self, msg):
# TODO: SendSpider and bulid msg
spider = self.__GetSpider(url=pay)
spider = self.__GetSpider(url=''pay'')
data = spider.Go()
print(data)
pass
11 changes: 6 additions & 5 deletions main.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
# -*- Coding:utf-8 -*-

import os

def main():
pass
pass

if __name__=='__main__':
main()
pass

if __name__ == '__main__':
main()
pass

0 comments on commit 87198e5

Please sign in to comment.