From carrot
Python
code posted
created at 30 Jan 21:04
Edit
|
Back
1 2 3 4 5 6 7 8 9 |
from carrot.connection import BrokerConnection conn = BrokerConnection(hostname="localhost", port=5672, userid="django", password="django", virtual_host="/django") from carrot.messaging import Publisher publisher = Publisher(connection=conn, exchange="feed", routing_key="importer") publisher.send({"import_feed": "http://cnn.com/rss/edition.rss"}) publisher.close() |
444 Bytes in 2 ms with coderay