2017 © Pedro Peláez
 

library agency-iha

Crawler for IHA News Agency in Turkey.

image

bilginpro/agency-iha

Crawler for IHA News Agency in Turkey.

  • Saturday, September 2, 2017
  • by bilginpro
  • Repository
  • 2 Watchers
  • 4 Stars
  • 186 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 3 % Grown

The README.md

IHA News Crawler - İHA Haber Robotu

Latest Version on Packagist ![Software License][ico-license] Build Status ![Coverage Status][ico-scrutinizer] StyleCI Quality Score ![Total Downloads][ico-downloads], (*1)

[EN] This package is created for crawling news from Ihlas Haber Ajansi. You have to be subscribed to IHA and obtain user credentials for being able to use this package., (*2)

[TR] Bu paket İHA abonelerinin kullanıcı bilgileriyle haberleri taramaları için oluşturulmuştur. Aşağıdaki şekilde kullandığınızda son eklenen haberlerden istediğiniz adette haberi dizi olarak alabilirsiniz. Paketi kullanmak için İHA abonesi olmalı ve kullanıcı bilgilerine sahip olmalısınız., (*3)

Install

Via Composer, (*4)

``` bash $ composer require bilginpro/agency-iha, (*5)


## Usage ``` php $crawler = new \BilginPro\Agency\Iha\Crawler([ 'user_code' => 'your-user-code', 'user_name' => 'your-user-name', 'password' => 'your-password', 'summaryLength' => 150 // optional ]); $news = $crawler->crawl(['limit' => 10]);

Calling $crawler->crawl() will return an array like this:, (*6)

[{
        "code": "20170831AW161286",
        "title": "Title of the news 1",
        "summary": "Summary...",
        "content": "Content 1",
        "created_at": "31.08.2017 15:56:12",
        "category": "Genel",
        "city": "Istanbul",
        "images": ["http:\/\/path\/to\/news1\/image1", "http:\/\/path\/to\/news1\/image2"]
    },
    {
        "code": "20170831AW161287",
        "title": "Title of the news 2",
        "summary": "Summary...",
        "content": "Content 2",
        "created_at": "31.08.2017 15:56:12",
        "category": "Genel",
        "city": "Ankara",
        "images": ["http:\/\/path\/to\/news2\/image1", "http:\/\/path\/to\/news2\/image2"]
    }
]

Change log

Please see CHANGELOG for more information on what has changed recently., (*7)

Testing

bash $ composer test, (*8)

Contributing

Please see CONTRIBUTING for details., (*9)

Security

If you discover any security related issues, please email yavuz@bilgin.pro instead of using the issue tracker., (*10)

Credits

License

The MIT License (MIT). Please see License File for more information., (*11)

The Versions

02/09 2017

dev-master

9999999-dev https://github.com/bilginpro/agency-iha

Crawler for IHA News Agency in Turkey.

  Sources   Download

MIT

The Requires

 

The Development Requires

bilginpro news agency agency-iha iha

02/09 2017

v1.0.2

1.0.2.0 https://github.com/bilginpro/agency-iha

Crawler for IHA News Agency in Turkey.

  Sources   Download

MIT

The Requires

 

The Development Requires

bilginpro news agency agency-iha iha

31/08 2017

v1.0.1

1.0.1.0 https://github.com/bilginpro/agency-iha

Crawler for IHA News Agency in Turkey.

  Sources   Download

MIT

The Requires

 

The Development Requires

bilginpro news agency agency-iha iha

31/08 2017

v1.0.0

1.0.0.0 https://github.com/bilginpro/agency-iha

Crawler for IHA News Agency in Turkey.

  Sources   Download

MIT

The Requires

 

The Development Requires

bilginpro news agency agency-iha iha