Commit 9488fcd4 authored by litaolemo's avatar litaolemo

update

parent 6d93d07a
...@@ -70,8 +70,8 @@ parser.add_argument('-v', '--video', default="False", type=str, ...@@ -70,8 +70,8 @@ parser.add_argument('-v', '--video', default="False", type=str,
parser.add_argument('-name', '--name', default="crawler01", type=str, parser.add_argument('-name', '--name', default="crawler01", type=str,
help=('this computer name')) help=('this computer name'))
args = parser.parse_args() args = parser.parse_args()
#, password='ReDis!GmTx*0aN12'
rds_save = redis.StrictRedis(host='172.18.51.10', port=6379, db=20, decode_responses=True, password='ReDis!GmTx*0aN12') rds_save = redis.StrictRedis(host='172.18.51.10', port=6379, db=20, decode_responses=True)
rds_1 = redis.StrictRedis(host='172.18.51.10', port=6379, db=19, decode_responses=True) rds_1 = redis.StrictRedis(host='172.18.51.10', port=6379, db=19, decode_responses=True)
rds_17 = redis.StrictRedis(host='172.18.51.10', port=6379, db=17, decode_responses=True) rds_17 = redis.StrictRedis(host='172.18.51.10', port=6379, db=17, decode_responses=True)
platform_crawler_reg = { platform_crawler_reg = {
......
...@@ -127,7 +127,7 @@ class Crawler_weibo(): ...@@ -127,7 +127,7 @@ class Crawler_weibo():
except: except:
get_page = None get_page = None
has_more = False has_more = False
print(get_page.text) # print(get_page.text)
if get_page and get_page.status_code == 200: if get_page and get_page.status_code == 200:
try: try:
page_json = get_page.json() page_json = get_page.json()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment