This is a dockerized twitter scraper built on Python. It is composed of the following 5 micro-services:
- MongoDB (database)
- Mongo-express (database UI)
- RabbitMQ (message queue management)
- Nameko (microservices framework)
- Twitter scraper (actual scraper)
Using the docker-scraper-twitter.default.env
file as reference, create a docker-scraper-twitter.env
file in the same location with the following:
TWITTER_API_CONSUMER_KEY=***
TWITTER_API_CONSUMER_SECRET=***
TWITTER_API_ACCESS_TOKEN=***
TWITTER_API_ACCESS_TOKEN_SECRET=***
TWITTER_API_FILTER=keyword
AMQP_URI=amqp://guest:guest@rabbitmq
Using the config.sample.py
file as reference, create a config.py
file in the same location, and customize its contents as needed.
docker-compose up