Due to the large number of newspaper and periodical data in the National Index to Chinese Newspaper&Periodicals,in order to deeply study the historical relationship of newspaper and periodical data,the text analysis tool is used to mine the existing newspaper and periodical data,and then the knowledge graph tool is used to plot a specific scenario-based knowledge graph for the relational data.Based on the published literature on text analysis,knowledge extraction and open source code,this paper conducts in-depth research and develops a newspaper and periodical history tool to extract historical data.The tool developed can efficiently complete the data analysis of nearly 24000 newspapers and periodicals in the database,and capture important historical relationships,which lay an important foundation for the subsequent drawing of knowledge graphs.