Skip to content

victor-papa/scrapysplash_odds

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Splash + Crawlera Example Project

This example project shows how to use Crawlera (a smart downloader) and Splash (a JavaScript rendering service) with Scrapy spiders.

How does it work?

The integration between Splash and Crawlera is done by a Lua script that is sent to Splash with every request created by the spider. This script configures Splash to use Crawlera as its proxy and also defines a couple rules to avoid doing useless requests, such as analytics ones, stylesheets, images, etc.

What do I need to run this project?

Here's what you'll need:

  • a Splash instance and a Crawlera account: you can get both via Scrapy Cloud billing page
  • set your Splash settings this project's settings.py file:
    • SPLASH_URL: the URL where your Splash instance is available
    • SPLASH_APIKEY: your Splash API key (required if you're using an instance from Scrapy Cloud)
  • set your Crawlera settings in the same file:
    • CRAWLERA_APIKEY: the API key for your Crawlera user

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published