A Python based scalable back-end service using RabbitMQ's pika library.
-
Start the reader component:
python reader.py -
Start a couple of independent receiver components by assigning them an id:
python receiver.py 1,python receiver.py 2etc. -
Start the sender component:
python sender.py
or
python sender.py <urls>
with<urls>being a file with urls, one per line. -
receiver.pyreceives the requests for downloading the screenshots and downloads them. -
Request a screenshot by querying it to
sender.pyasget <url>(<url> should be exactly the same as requested previously, or as in the<urls>file, otherwise it will not be found in the existing screenshots, and a new request for downloading will be issued.
- Linux
- RabbitMQ
- RabbitMQ (pika) for python
- gnome-web-photo should be already built-in in Linux.