O'Reilly logo

Python Web Scraping Cookbook by Michael Heydt

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

How to do it

We start by creating an ECR cluster using the AWS CLI.  The we will create one EC2 virtual machine in the cluster to run our containers. 

I've included a shell file, in the 11/06 folder, names create-cluster-complete.sh, which runs through all of these commands in one run. 

There are number of steps to getting this configured but they are all fairly simple.  Let's walk through them:

  1. The following creates an ECR cluster named scraper-cluster:
$ aws ecs create-cluster --cluster-name scraper-cluster{  "cluster": {    "clusterName": "scraper-cluster",    "registeredContainerInstancesCount": 0,    "clusterArn": "arn:aws:ecs:us-west-2:414704166289:cluster/scraper-cluster",    "status": "ACTIVE",    "activeServicesCount": 0, "pendingTasksCount": ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required