4

I want to execute JavaScript's function in Python-Scrapy, before, i used Selenium, but Selenium is too much slow for scraping the big sites.

I would like to know what's the best alternative for selenium for executing js in Scrapy?

2
  • Have you tried webdriver.js ? Commented Dec 26, 2016 at 10:55
  • @Karthikeyan yes, it's not a good choice for the big site Commented Dec 26, 2016 at 11:33

1 Answer 1

15

Splash - A javascript rendering service

Splash is a javascript rendering service with an HTTP API. It's a lightweight browser with an HTTP API, implemented in Python using Twisted and QT.

It's fast, lightweight and state-less which makes it easy to distribute.

Bonus points for it being developed by the same guys who are developing Scrapy.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.