Based on network pharmacology and various route information, investigate prospective substances and mechanisms of hospital preparation of Yinaoan capsule (YNA) in the treatment of epilepsy. The compounds of YNA were collected using the Traditional Chinese Medicine System Pharmacology Database (TCMSP), Traditional Chinese Medicines Integrated Database (TCMID), Encyclopedia of Traditional Chinese Medicine (ETCM), and related literature, and the pkCSM platform was used to predict the pharmacokinetic parameters. The targets of compounds were predicted by SwissTargetPrediction; Collect epilepsy targets and the information of Anti-epileptic drugs from databases such as Genecards and TTD, then obtain intersection targets of YNA compounds and epilepsy. KEGG pathway enrichment analysis was performed through the DAVID database. Gephi was used to construct the network. Finally, the compounds were confirmed by Autodock Vina. 27 key pathways of YNA (Calcium signaling pathway, cAMP signaling pathway, etc.) can be obtained by KEGG pathway analysis. 25 core targets (MAPK3, PRKCA, etc.) and 20 key compounds (GC195, ZNX069, etc.) were obtained by network analysis. The major molecules and the core targets have a strong binding interaction, as demonstrated by molecular docking. By working on MAPK3, PRKCA, and other core targets through important chemicals like GC195 and ZNX069 to activate the Calcium signaling pathway, the cAMP signaling system, and other pathways, YNA may have anti-epileptic effects.