Skip to content
Advertisement

Downloading all JS files using Scrapy?

I am trying to crawl a website searching for all JS files to download them. I am new to Scrapy and I have found that I can use CrawlSpider but seems I have an issue with LinkExtractors as my parser is not executed.

JavaScript

Advertisement

Answer

I found that LinkExtractor has tags and attrs parameters where the default are for ‘a’ and ‘area’ tags only. LinxExtractor Documentation

So the solution is to add ” tag:

JavaScript
User contributions licensed under: CC BY-SA
9 People found this is helpful
Advertisement