A network‐based computational framework known as Mnet‐DRI is developed to accurately identify maprotiline, an antidepressant, as a potential PD‐L1 inhibitor for use in colorectal and lung cancers. This evidence concerns the gene CD274 and lung carcinoma.