I wrote a crawler. In order to crawl to the jumps in js, I used regular expressions to extract the jump information in js. However, this matching method cannot obtain complex js jumps, so I want to improve it through js semantic recognition. Accuracy
I wrote a crawler. In order to crawl to the jumps in js, I used regular expressions to extract the jump information in js. However, this matching method cannot obtain complex js jumps, so I want to improve it through js semantic recognition. Accuracy
Below is my regex:
For the following piece of JS code, it is obvious that the jump cannot be extracted through regular expressions:
<script>window.onload=function(){ url ='/webui';window.location.href=url;}</script>