简体   繁体   English

cra脚的javascript函数

[英]Scrapy call javascript function

I'm using scrapy to crawl this website : http://egypuppy.com/e-store.php?fl=1 我正在使用scrapy爬网该网站: http ://egypuppy.com/e-store.php?fl=1

In the drop down menu by the right, I can choose a breed to view the dogs, this is an example for one of the li elements in the drop down menu : 在右侧的下拉菜单中,我可以选择一个品种来查看狗,这是下拉菜单中li元素之一的示例:

href="javascript:getDogForSale('0','1');setBreedName('Affenpinscher');" href =“ javascript:getDogForSale('0','1'); setBreedName('Affenpinscher');” id="no-image" id =“ no-image”

is there a way to call this JS function using scrapy? 有没有办法使用scrapy调用此JS函数?

Scrapy does not natively support rendering JavaScript so you need to roll your own solution, but this work involves multiple Reactors which is not programmed by the faint of heart. Scrapy本身不支持渲染JavaScript,因此您需要推出自己的解决方案,但是这项工作涉及多个Reactor ,这些反应器不是由胆小的人编写的。

Here are some integration options: 以下是一些集成选项:

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM