# Select Drug Category Links This tutorial will demonstrate how to use Jexter configurations to handle specific HTML structures, with a particular emphasis on selecting links. This process is basically introduced in our [DP2 for Beginners](Jexter%20Configuration:Extracting%20the%20Category%20in%20'category_step'.md) guide, while in this tutorial, we will explore a special case, namely how to filter links. #### Sample Web Page Structure Assume the target webpage's HTML structure is as follows: ```html
``` #### XPath Expression To extract the category names and links in the middle (excluding the first and last `li` elements), we use the following XPath expression: ``` //div[@class='com_main bg3']/div[1]/div[1]/ul/li[position()>1 and position()1 and position()