Skip to content

The system is pulling automatic news, picture, video and graphics from Anadolu Ajansı API.

Notifications You must be signed in to change notification settings

omermertkaya/anadolu-agency-automatic-data-pull

Repository files navigation

anadolu-agency-automatic-data-pull

The system is pulling automatic news, picture, video and graphic from Anadolu Ajansı API. The app is working 24 hourly. App will get all data from agency. The news format is XML. Image format is JPG. Video format is mp4. Graphic format is JPEG.

Requirements

Anadolu Agency API Account
RabbitMQ
Nodejs
Pm2

Installation

NodeJS:

https://nodejs.org/en/download/

Pm2:

npm i pm2

RabbitMQ:

https://www.rabbitmq.com/install-windows.html
or
https://www.rabbitmq.com/install-debian.html

Port Number is 15672 for RabbitMQ Server.

Anadolu Agency Settings:

Install npm requirements
cd ./anadolu-agency-automatic-data-pull
npm install

You could configure your account information.

aauser.js
const aaUserName = 'your agency username'
const aaPassword =   'your agency password'

module.exports = {
    aaPassword,aaUserName
}

Starting Server.js and Receive.js

The code is working in the project folder.

cd ./anadolu-agency-automatic-data-pull
pm2 start server.js -n Agency-Main
pm2 start receive.js -n Agency-Receive

License

Distributed under the MIT License. See LICENSE.txt for more information.

Contact

Ömer Mert KAYA - [email protected]

Project Link: https://github.com/omermertkaya/anadolu-agency-automatic-data-pull

About

The system is pulling automatic news, picture, video and graphics from Anadolu Ajansı API.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published