If you do not already have a local ~/.npmrc file, you need to create one.
- Open a terminal window
- Run
npm login
C02STG51GTFM:localstack mpandit$ make infra
. .venv/bin/activate; exec localstack/mock/infra.py
Starting local dev environment. CTRL-C to quit.
Starting local Elasticsearch (port 4571)...
Starting mock ES service (port 4578)...
Starting mock S3 server (port 4572)...
Starting mock SNS server (port 4575)...
| # import | |
| import os | |
| from os import path, listdir as list_dir, rename as move | |
| from os.path import isdir as is_dir, isfile as is_file | |
| from pprint import pprint | |
| import shutil | |
| # global variables | |
| #================== |
| from random import choice | |
| from scrapy import signals | |
| from scrapy.exceptions import NotConfigured | |
| class RotateUserAgentMiddleware(object): | |
| """Rotate user-agent for each request.""" | |
| def __init__(self, user_agents): | |
| self.enabled = False | |
| self.user_agents = user_agents |
Other people's projects:
My projects (tutorials are on my blog at http://maxoffsky.com):