forked from SpiderClub/weibospider
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
cda73b6
commit 1430f3c
Showing
56 changed files
with
90 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
*.js linguist-language=Python | ||
*.css linguist-language=Python | ||
*.html linguist-language=Python | ||
*.xml | ||
*.pyc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
db: | ||
host: 1.23.4.5 | ||
host: 202.115.44.140 | ||
port: 1521 | ||
user: dbs | ||
password: 12345678 | ||
db_name: adb | ||
user: dangban | ||
password: 85418825 | ||
db_name: ntci | ||
db_type: oracle | ||
|
||
redis_db: | ||
|
@@ -14,11 +14,14 @@ redis_db: | |
# 如果微博账号比较多,也可以考虑使用数据库进行读取和修改(比如标记账号的有效性) | ||
weibo_account: | ||
- account: | ||
name: acount1 | ||
password: password1 | ||
name: [email protected] | ||
password: rookiefly | ||
- account: | ||
name: acount2 | ||
password: password2 | ||
name: 15708437303 | ||
password: rookiefly | ||
- account: | ||
name: acount3 | ||
password: password3 | ||
name: [email protected] | ||
password: rookiefly | ||
- account: | ||
name: [email protected] | ||
password: rookiefly |
Empty file.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
Empty file.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
import logging | ||
import logging.config as log_conf | ||
|
||
log_config = { | ||
'version': 1.1, | ||
'formatters': { | ||
'detail': { | ||
'format': '%(asctime)s - %(name)s - %(levelname)s - %(message)s', | ||
'datefmt': "%Y-%m-%d %H:%M:%S" | ||
}, | ||
'simple': { | ||
'format': '%(name)s - %(levelname)s - %(message)s', | ||
}, | ||
}, | ||
'handlers': { | ||
'console': { | ||
'class': 'logging.StreamHandler', | ||
'level': 'INFO', | ||
'formatter': 'detail' | ||
}, | ||
'file': { | ||
'class': 'logging.handlers.WatchedFileHandler', | ||
'filename': 'log/log.txt', | ||
'level': 'INFO', | ||
'formatter': 'detail', | ||
'encoding': 'utf-8', | ||
}, | ||
}, | ||
'loggers': { | ||
'crawler': { | ||
'handlers': ['console', 'file'], | ||
'level': 'DEBUG', | ||
}, | ||
'parser': { | ||
'handlers': ['file'], | ||
'level': 'INFO', | ||
}, | ||
'other': { | ||
'handlers': ['console', 'file'], | ||
'level': 'INFO', | ||
}, | ||
'storage': { | ||
'handlers': ['file'], | ||
'level': 'INFO', | ||
} | ||
} | ||
} | ||
|
||
log_conf.dictConfig(log_config) | ||
|
||
other = logging.getLogger('other') | ||
crawler = logging.getLogger('crawler') | ||
parser = logging.getLogger('page_parser') | ||
storage = logging.getLogger('storage') | ||
|
||
|
||
__all__ = ['crawler', 'parser', 'other', 'storage'] | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.