Web scraping 在ChereIO中使用正则表达式或通配符?

Web scraping 在ChereIO中使用正则表达式或通配符?,web-scraping,cheerio,Web Scraping,Cheerio,一些网站在其类名中附加哈希代码,以使网页抓取更加困难: 如何通过使用正则表达式或通配符作为类名来标识这样的DOM元素 <input value="" class="malt-input-Input-input-eb6b6d2b malt-input-Input-l-a04d5840"> 你可以做$('input[class*=“malt input”]) 顺便说一句,这不是他们这么做的原因,还有另一个我们不知道的原因

一些网站在其类名中附加哈希代码,以使网页抓取更加困难:

如何通过使用正则表达式或通配符作为类名来标识这样的DOM元素

<input value="" class="malt-input-Input-input-eb6b6d2b malt-input-Input-l-a04d5840">

你可以做
$('input[class*=“malt input”])

顺便说一句,这不是他们这么做的原因,还有另一个我们不知道的原因