import requests
import time
import re
import datetime
import json
import os

se = requests.session()
for i in range(5,20):
    post_url =     "https://interface.sina.cn/news/get_news_by_channel_new_v2018.d.json?cat_1=70035&level=1,2&page="+str(i)+"&show_num=200&callback=jQuery191013256647717961534_1624899120134&_=1624899120146"
    #while True:
    ti = datetime.datetime.now().strftime('%Y-%m-%d  %H-%m-%S')
    filename = '[网易军事]'+str(i)+'.txt'
    data = se.get(post_url).text#.replace("'", '"').replace('/ ', '/')
    #print(data.encode('utf-8').decode('unicode_escape'))
    with open(filename,"wb",) as f:
        f.write(data.encode('utf-8').decode('unicode_escape').encode('utf-8'))
        #os.system("scrapy crawl wenzhou")
    print("load data success! ",i)
    time.sleep(1) # 每24小时爬一次
5f9f51301c60510c335959d1b04b2246f5784592
<mask token>

<mask token>
for i in range(5, 20):
    post_url = (
        'https://interface.sina.cn/news/get_news_by_channel_new_v2018.d.json?cat_1=70035&level=1,2&page='
         + str(i) +
        '&show_num=200&callback=jQuery191013256647717961534_1624899120134&_=1624899120146'
        )
    ti = datetime.datetime.now().strftime('%Y-%m-%d  %H-%m-%S')
    filename = '[网易军事]' + str(i) + '.txt'
    data = se.get(post_url).text
    with open(filename, 'wb') as f:
        f.write(data.encode('utf-8').decode('unicode_escape').encode('utf-8'))
    print('load data success! ', i)
    time.sleep(1)

<mask token>
se = requests.session()
for i in range(5, 20):
    post_url = (
        'https://interface.sina.cn/news/get_news_by_channel_new_v2018.d.json?cat_1=70035&level=1,2&page='
         + str(i) +
        '&show_num=200&callback=jQuery191013256647717961534_1624899120134&_=1624899120146'
        )
    ti = datetime.datetime.now().strftime('%Y-%m-%d  %H-%m-%S')
    filename = '[网易军事]' + str(i) + '.txt'
    data = se.get(post_url).text
    with open(filename, 'wb') as f:
        f.write(data.encode('utf-8').decode('unicode_escape').encode('utf-8'))
    print('load data success! ', i)
    time.sleep(1)

import requests
import time
import re
import datetime
import json
import os
se = requests.session()
for i in range(5, 20):
    post_url = (
        'https://interface.sina.cn/news/get_news_by_channel_new_v2018.d.json?cat_1=70035&level=1,2&page='
         + str(i) +
        '&show_num=200&callback=jQuery191013256647717961534_1624899120134&_=1624899120146'
        )
    ti = datetime.datetime.now().strftime('%Y-%m-%d  %H-%m-%S')
    filename = '[网易军事]' + str(i) + '.txt'
    data = se.get(post_url).text
    with open(filename, 'wb') as f:
        f.write(data.encode('utf-8').decode('unicode_escape').encode('utf-8'))
    print('load data success! ', i)
    time.sleep(1)

import requests
import time
import re
import datetime
import json
import os

se = requests.session()
for i in range(5,20):
    post_url =     "https://interface.sina.cn/news/get_news_by_channel_new_v2018.d.json?cat_1=70035&level=1,2&page="+str(i)+"&show_num=200&callback=jQuery191013256647717961534_1624899120134&_=1624899120146"
    #while True:
    ti = datetime.datetime.now().strftime('%Y-%m-%d  %H-%m-%S')
    filename = '[网易军事]'+str(i)+'.txt'
    data = se.get(post_url).text#.replace("'", '"').replace('/ ', '/')
    #print(data.encode('utf-8').decode('unicode_escape'))
    with open(filename,"wb",) as f:
        f.write(data.encode('utf-8').decode('unicode_escape').encode('utf-8'))
        #os.system("scrapy crawl wenzhou")
    print("load data success! ",i)
    time.sleep(1) # 每24小时爬一次